net: fec: clear all interrupt events to support i.MX6SX
authorNimrod Andy <B38611@freescale.com>
Thu, 11 Dec 2014 01:20:32 +0000 (09:20 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Dec 2014 04:37:01 +0000 (23:37 -0500)
For i.MX6SX FEC controller, there have interrupt mask and event
field extension. To support all SOCs FEC, we clear all interrupt
events during MAVC initial process.

Signed-off-by: Fugang Duan <B38611@freescale.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/fec_main.c

index b118b7da34666cebbd3135c7c0e135bf6cef2f52..85c955e4383f2edbbd5fb4900a36ffff839303fa 100644 (file)
@@ -940,7 +940,7 @@ fec_restart(struct net_device *ndev)
        }
 
        /* Clear any outstanding interrupt. */
-       writel(0xffc00000, fep->hwp + FEC_IEVENT);
+       writel(0xffffffff, fep->hwp + FEC_IEVENT);
 
        fec_enet_bd_init(ndev);