aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/freescale
diff options
context:
space:
mode:
authorNimrod Andy <B38611@freescale.com>2014-12-10 20:20:33 -0500
committerDavid S. Miller <davem@davemloft.net>2014-12-10 23:37:01 -0500
commit0c5a3aef9ffc8a7a6fb74be6d87e066b5424f8c3 (patch)
tree4a549a98368a3f9baa6e552dc3072b4da535c070 /drivers/net/ethernet/freescale
parente17f7fecddd4b6a5a6b0758fc0301e9233d3ae78 (diff)
net: fec: only enable mdio interrupt before phy device link up
Before phy device link up, we only enable FEC mdio interrupt, which is more reasonable. Signed-off-by: Fugang Duan <B38611@freescale.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/freescale')
-rw-r--r--drivers/net/ethernet/freescale/fec_main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/ethernet/freescale/fec_main.c b/drivers/net/ethernet/freescale/fec_main.c
index 85c955e4383f..8c5b15ee5ed7 100644
--- a/drivers/net/ethernet/freescale/fec_main.c
+++ b/drivers/net/ethernet/freescale/fec_main.c
@@ -1075,7 +1075,10 @@ fec_restart(struct net_device *ndev)
1075 fec_ptp_start_cyclecounter(ndev); 1075 fec_ptp_start_cyclecounter(ndev);
1076 1076
1077 /* Enable interrupts we wish to service */ 1077 /* Enable interrupts we wish to service */
1078 writel(FEC_DEFAULT_IMASK, fep->hwp + FEC_IMASK); 1078 if (fep->link)
1079 writel(FEC_DEFAULT_IMASK, fep->hwp + FEC_IMASK);
1080 else
1081 writel(FEC_ENET_MII, fep->hwp + FEC_IMASK);
1079 1082
1080 /* Init the interrupt coalescing */ 1083 /* Init the interrupt coalescing */
1081 fec_enet_itr_coal_init(ndev); 1084 fec_enet_itr_coal_init(ndev);