[PATCH v8 04/13] mfd: nct6694: Ignore interrupts without a mapping
From: a0282524688
Date: Wed Oct 07 2026 - 08:04:16 EST
From: Ming Yu <a0282524688@xxxxxxxxx>
The return value of irq_find_mapping() is passed straight to
generic_handle_irq_safe(). If the device reports a hardware interrupt
that has no mapping, irq_find_mapping() returns 0 and the handler of
the system's IRQ 0 is invoked instead.
Use generic_handle_domain_irq_safe(), which ignores unmapped hardware
interrupts.
Fixes: 51dad33ede63 ("mfd: Add core driver for Nuvoton NCT6694")
Signed-off-by: Ming Yu <a0282524688@xxxxxxxxx>
---
Changes in v8:
- New patch. Use generic_handle_domain_irq_safe() so that unmapped
interrupts are ignored.
drivers/mfd/nct6694.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mfd/nct6694.c b/drivers/mfd/nct6694.c
index de0027c98726..4f5a5b855de2 100644
--- a/drivers/mfd/nct6694.c
+++ b/drivers/mfd/nct6694.c
@@ -227,7 +227,7 @@ static void usb_int_callback(struct urb *urb)
while (int_status) {
int irq = __ffs(int_status);
- generic_handle_irq_safe(irq_find_mapping(nct6694->domain, irq));
+ generic_handle_domain_irq_safe(nct6694->domain, irq);
int_status &= ~BIT(irq);
}
--
2.34.1