Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0c5a3aef authored by Nimrod Andy's avatar Nimrod Andy Committed by David S. Miller
Browse files

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: default avatarFugang Duan <B38611@freescale.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e17f7fec
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -1075,7 +1075,10 @@ fec_restart(struct net_device *ndev)
		fec_ptp_start_cyclecounter(ndev);

	/* Enable interrupts we wish to service */
	if (fep->link)
		writel(FEC_DEFAULT_IMASK, fep->hwp + FEC_IMASK);
	else
		writel(FEC_ENET_MII, fep->hwp + FEC_IMASK);

	/* Init the interrupt coalescing */
	fec_enet_itr_coal_init(ndev);