Skip to content

Commit

Permalink
net: stmmac: ensure phydev is attached to phylink for C37 AN
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
elvinongbl authored and davem330 committed Mar 15, 2021
1 parent e5e5b77 commit c62808e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2898,7 +2898,7 @@ static int stmmac_open(struct net_device *dev)

if (priv->hw->pcs != STMMAC_PCS_TBI &&
priv->hw->pcs != STMMAC_PCS_RTBI &&
priv->hw->xpcs == NULL) {
priv->hw->xpcs_args.an_mode != DW_AN_C73) {
ret = stmmac_init_phy(dev);
if (ret) {
netdev_err(priv->dev,
Expand Down

0 comments on commit c62808e

Please sign in to comment.