Skip to content

Commit d0939c2

Browse files
lunndavem330
authored andcommitted
net: ethernet: xgbe: expand PHY_GBIT_FEAUTRES
The macro PHY_GBIT_FEAUTRES needs to change into a bitmap in order to support link_modes. Remove its use from xgde by replacing it with its definition. Probably, the current behavior is wrong. It probably should be ANDing not assigning. Signed-off-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent f954a04 commit d0939c2

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -878,8 +878,9 @@ static bool xgbe_phy_finisar_phy_quirks(struct xgbe_prv_data *pdata)
878878
phy_write(phy_data->phydev, 0x04, 0x0d01);
879879
phy_write(phy_data->phydev, 0x00, 0x9140);
880880

881-
phy_data->phydev->supported = PHY_GBIT_FEATURES;
882-
phy_data->phydev->advertising = phy_data->phydev->supported;
881+
phy_data->phydev->supported = PHY_10BT_FEATURES |
882+
PHY_100BT_FEATURES |
883+
PHY_1000BT_FEATURES;
883884
phy_support_asym_pause(phy_data->phydev);
884885

885886
netif_dbg(pdata, drv, pdata->netdev,
@@ -950,8 +951,9 @@ static bool xgbe_phy_belfuse_phy_quirks(struct xgbe_prv_data *pdata)
950951
reg = phy_read(phy_data->phydev, 0x00);
951952
phy_write(phy_data->phydev, 0x00, reg & ~0x00800);
952953

953-
phy_data->phydev->supported = PHY_GBIT_FEATURES;
954-
phy_data->phydev->advertising = phy_data->phydev->supported;
954+
phy_data->phydev->supported = (PHY_10BT_FEATURES |
955+
PHY_100BT_FEATURES |
956+
PHY_1000BT_FEATURES);
955957
phy_support_asym_pause(phy_data->phydev);
956958

957959
netif_dbg(pdata, drv, pdata->netdev,

0 commit comments

Comments
 (0)