r8169: improve spurious interrupt detection
Heiner Kallweit
maintainerPATCH 1/1 r8169: improve spurious interrupt detection
Improve detection of spurious interrupts by checking against the interrupt mask as currently set in the chip.
Signed-off-by Heiner Kallweit <[email protected]>
--- drivers/net/ethernet/realtek/r8169.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/net/ethernet/realtek/r8169.c +2 -1
@@ -6405,8 +6405,9 @@ static irqreturn_t rtl8169_interrupt(int irq, void *dev_instance) {struct rtl8169_private *tp = dev_instance;u16 status =rtl_get_events (tp); +u16 irq_mask =RTL_R16 (tp, IntrMask); -if (status ==0xffff || !(status & tp->irq_mask)) +if (status ==0xffff || !(status & irq_mask))return IRQ_NONE ;if (unlikely (status & SYSErr)) {
Signature · 1 line
2.20.0
From: Heiner Kallweit <[email protected]>
Date: Sat, 15 Dec 2018 16:25:05 +0100
Quoted 4 lines
Improve detection of spurious interrupts by checking against the interrupt mask as currently set in the chip.
Signed-off-by Heiner Kallweit <[email protected]>
Applied, thanks Heiner.