irqchip/realtek-rtl: Map control data to virq
authorSander Vanheule <sander@svanheule.net>
Sun, 9 Jan 2022 14:54:32 +0000 (15:54 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 1 Feb 2022 16:27:15 +0000 (17:27 +0100)
commitf67594cbf3c8e6226b7e15ba978f5213bba8a75a
treeab8f7c1bcb2ce24094f228e3d8229a968af1323f
parentbcea886771c3f22a590c8c8b9139a107bd7f1e1c
irqchip/realtek-rtl: Map control data to virq

commit 291e79c7e2eb6fdc016453597b78482e06199d0f upstream.

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: 9f3a0f34b84a ("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
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/irqchip/irq-realtek-rtl.c