Skip to content

Commit

Permalink
net: fec: clear all interrupt events to support i.MX6SX
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Nimrod Andy authored and David S. Miller committed Dec 11, 2014
1 parent 858eeb7 commit e17f7fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/freescale/fec_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit e17f7fe

Please sign in to comment.