Skip to content

Commit 291e79c

Browse files
svanheuleMarc Zyngier
authored andcommitted
irqchip/realtek-rtl: Map control data to virq
The driver assigned the irqchip and irq handler to the hardware irq, instead of the virq. This is incorrect, and only worked because these irq numbers happened to be the same on the devices used for testing the original driver. Fixes: 9f3a0f3 ("irqchip: Add support for Realtek RTL838x/RTL839x interrupt controller") Signed-off-by: Sander Vanheule <sander@svanheule.net> Signed-off-by: Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/4b4936606480265db47df152f00bc2ed46340599.1641739718.git.sander@svanheule.net
1 parent 45378cd commit 291e79c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/irqchip/irq-realtek-rtl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ static struct irq_chip realtek_ictl_irq = {
6262

6363
static int intc_map(struct irq_domain *d, unsigned int irq, irq_hw_number_t hw)
6464
{
65-
irq_set_chip_and_handler(hw, &realtek_ictl_irq, handle_level_irq);
65+
irq_set_chip_and_handler(irq, &realtek_ictl_irq, handle_level_irq);
6666

6767
return 0;
6868
}

0 commit comments

Comments
 (0)