net: fec: don't disable FEC_ENET_TS_TIMER interrupt
authorTroy Kisky <troy.kisky@boundarydevices.com>
Fri, 5 Feb 2016 21:52:48 +0000 (14:52 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Feb 2016 11:14:51 +0000 (06:14 -0500)
Only the interrupt routine processes this condition.

Signed-off-by: Troy Kisky <troy.kisky@boundarydevices.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/fec.h
drivers/net/ethernet/freescale/fec_main.c

index bedd28a6e8f524d3587675023aa67ad205aea815..195122e11f1060de30b2fb34de72f7db31ef659f 100644 (file)
@@ -375,6 +375,7 @@ struct bufdesc_ex {
 #define FEC_ENET_TS_TIMER       ((uint)0x00008000)
 
 #define FEC_DEFAULT_IMASK (FEC_ENET_TXF | FEC_ENET_RXF | FEC_ENET_MII | FEC_ENET_TS_TIMER)
+#define FEC_NAPI_IMASK (FEC_ENET_MII | FEC_ENET_TS_TIMER)
 #define FEC_RX_DISABLED_IMASK (FEC_DEFAULT_IMASK & (~FEC_ENET_RXF))
 
 /* ENET interrupt coalescing macro define */
index 712e3bb1e0d330b002760b603326a53c48fac325..ca2708d13dfea9a0d0b58d3276d9e6b3f46d740a 100644 (file)
@@ -1553,7 +1553,7 @@ fec_enet_interrupt(int irq, void *dev_id)
 
                if (napi_schedule_prep(&fep->napi)) {
                        /* Disable the NAPI interrupts */
-                       writel(FEC_ENET_MII, fep->hwp + FEC_IMASK);
+                       writel(FEC_NAPI_IMASK, fep->hwp + FEC_IMASK);
                        __napi_schedule(&fep->napi);
                }
        }