We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91351b5 commit 960dd88Copy full SHA for 960dd88
drivers/irqchip/irq-realtek-rtl.c
@@ -76,16 +76,20 @@ static void realtek_irq_dispatch(struct irq_desc *desc)
76
{
77
struct irq_chip *chip = irq_desc_get_chip(desc);
78
struct irq_domain *domain;
79
- unsigned int pending;
+ unsigned long pending;
80
+ unsigned int soc_int;
81
82
chained_irq_enter(chip, desc);
83
pending = readl(REG(RTL_ICTL_GIMR)) & readl(REG(RTL_ICTL_GISR));
84
+
85
if (unlikely(!pending)) {
86
spurious_interrupt();
87
goto out;
88
}
89
90
domain = irq_desc_get_handler_data(desc);
- generic_handle_domain_irq(domain, __ffs(pending));
91
+ for_each_set_bit(soc_int, &pending, 32)
92
+ generic_handle_domain_irq(domain, soc_int);
93
94
out:
95
chained_irq_exit(chip, desc);
0 commit comments