From: Francois Romieu Date: Thu, 3 Feb 2011 16:27:52 +0000 (+0100) Subject: r8169: prevent RxFIFO induced loops in the irq handler. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f60ac8e7ab7cbb413a0131d5665b053f9f386526;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git r8169: prevent RxFIFO induced loops in the irq handler. While the RxFIFO interruption is masked for most 8168, nothing prevents it to appear in the irq status word. This is no excuse to crash. Signed-off-by: Francois Romieu Cc: Ivan Vecera Cc: Hayes --- diff --git a/drivers/net/r8169.c b/drivers/net/r8169.c index 40dabe2b3dae..59ccf0c5c610 100644 --- a/drivers/net/r8169.c +++ b/drivers/net/r8169.c @@ -4650,6 +4650,15 @@ static irqreturn_t rtl8169_interrupt(int irq, void *dev_instance) netif_stop_queue(dev); rtl8169_tx_timeout(dev); goto done; + /* Testers needed. */ + case RTL_GIGA_MAC_VER_17: + case RTL_GIGA_MAC_VER_19: + case RTL_GIGA_MAC_VER_20: + case RTL_GIGA_MAC_VER_21: + case RTL_GIGA_MAC_VER_23: + case RTL_GIGA_MAC_VER_24: + case RTL_GIGA_MAC_VER_27: + case RTL_GIGA_MAC_VER_28: /* Experimental science. Pktgen proof. */ case RTL_GIGA_MAC_VER_12: case RTL_GIGA_MAC_VER_25: