summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorMichael Pesa <michael.pesa@icloud.com>2026-07-21 22:02:43 -0700
committerThomas Gleixner <tglx@kernel.org>2026-08-20 08:29:33 +0200
commit34b7e953d19a39515f8fc6c0820ebf243ea6b026 (patch)
treea7a771735d9b5685459f6a7acaf3ddfd22b79698 /tools/lib/python
parentb76eee9c2157223aa4aac42ceebb563288e078aa (diff)
downloadlinux-34b7e953d19a39515f8fc6c0820ebf243ea6b026.tar.gz
linux-34b7e953d19a39515f8fc6c0820ebf243ea6b026.zip
irqchip/ast2700-intc: Disable all interrupt merge banks on probe
The INTC0 interrupt-merge (INTM) space has 50 sources at 10 per bank, i.e. INTC0_INTM_NUM / INTM_IRQS_PER_BANK = 5 banks. This is reflected everywhere the banks are indexed: the aspeed_intc0_intm_routes[] table has 5 valid entries, and the mask/unmask/eoi paths compute the bank as (hwirq - INTM_BASE) / INTM_IRQS_PER_BANK, spanning banks 0-4. However, INTC0_INTM_BANK_NUM is hardcoded to 3, so aspeed_intc0_disable_intm() only clears IER for banks 0-2 at probe. Banks 3 and 4 are left in whatever state the firmware configured them , which can leave interrupts enabled before a handler is installed. Derive the bank count from the source count so the probe-time disable covers every bank. Fixes: 07825e41519a ("irqchip/ast2700-intc: Add AST2700-A2 support") Signed-off-by: Michael Pesa <michael.pesa@icloud.com> Signed-off-by: Thomas Gleixner <tglx@kernel.org> Link: https://patch.msgid.link/20260722050243.298355-1-michael.pesa@icloud.com
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions