Skip to content

Commit 4c33a5b

Browse files
IoanaCiorneidavem330
authored andcommitted
dpaa2-eth: no need to check link state right after ndo_open
The call to dpaa2_eth_link_state_update() is a leftover from the time when on DPAA2 platforms the PHYs were started at boot time so when an ifconfig was issued on the associated interface, the link status needed to be checked directly from the ndo_open() callback. This is not needed anymore since we are now properly integrated with the PHY layer thus a link interrupt will come directly from the PHY eventually without the need to call the sync function. Fix this up by removing the call to dpaa2_eth_link_state_update(). Signed-off-by: Ioana Ciornei <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 9817970 commit 4c33a5b

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1700,22 +1700,11 @@ static int dpaa2_eth_open(struct net_device *net_dev)
17001700
goto enable_err;
17011701
}
17021702

1703-
if (!priv->mac) {
1704-
/* If the DPMAC object has already processed the link up
1705-
* interrupt, we have to learn the link state ourselves.
1706-
*/
1707-
err = dpaa2_eth_link_state_update(priv);
1708-
if (err < 0) {
1709-
netdev_err(net_dev, "Can't update link state\n");
1710-
goto link_state_err;
1711-
}
1712-
} else {
1703+
if (priv->mac)
17131704
phylink_start(priv->mac->phylink);
1714-
}
17151705

17161706
return 0;
17171707

1718-
link_state_err:
17191708
enable_err:
17201709
dpaa2_eth_disable_ch_napi(priv);
17211710
dpaa2_eth_drain_pool(priv);

0 commit comments

Comments
 (0)