Skip to content

Commit c62808e

Browse files
elvinongbldavem330
authored andcommitted
net: stmmac: ensure phydev is attached to phylink for C37 AN
As the support for MAC-side SGMII C37 AN is added to pcs-xpcs, phydev should be attached to phylink during driver's open(). So, we change the condition to "Not C73 AN" instead. Signed-off-by: Ong Boon Leong <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent e5e5b77 commit c62808e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/stmicro/stmmac/stmmac_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2898,7 +2898,7 @@ static int stmmac_open(struct net_device *dev)
28982898

28992899
if (priv->hw->pcs != STMMAC_PCS_TBI &&
29002900
priv->hw->pcs != STMMAC_PCS_RTBI &&
2901-
priv->hw->xpcs == NULL) {
2901+
priv->hw->xpcs_args.an_mode != DW_AN_C73) {
29022902
ret = stmmac_init_phy(dev);
29032903
if (ret) {
29042904
netdev_err(priv->dev,

0 commit comments

Comments
 (0)