diff options
author | Heiner Kallweit <hkallweit1@gmail.com> | 2019-05-28 18:43:46 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-05-29 21:42:48 -0700 |
commit | a6851c613fd7fccc5d1f28d5d8a0cbe9b0f4e8cc (patch) | |
tree | 146302563f34437fbbbe6784b30f65284505d193 /drivers | |
parent | 2c1d029a017f23e912f5d549ad8a2d84428a5017 (diff) |
r8169: remove 1000/Half from supported modes
MAC on the GBit versions supports 1000/Full only, however the PHY
partially claims to support 1000/Half. So let's explicitly remove
this mode.
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/realtek/r8169.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/ethernet/realtek/r8169.c b/drivers/net/ethernet/realtek/r8169.c index 64c25913a326..261858e5a77d 100644 --- a/drivers/net/ethernet/realtek/r8169.c +++ b/drivers/net/ethernet/realtek/r8169.c @@ -6386,7 +6386,10 @@ static int r8169_phy_connect(struct rtl8169_private *tp) if (ret) return ret; - if (!tp->supports_gmii) + if (tp->supports_gmii) + phy_remove_link_mode(phydev, + ETHTOOL_LINK_MODE_1000baseT_Half_BIT); + else phy_set_max_speed(phydev, SPEED_100); phy_support_asym_pause(phydev); |