Skip to content

Commit 9cf9b84

Browse files
hkallweitdavem330
authored andcommitted
r8169: make use of phy_set_asym_pause
phy_probe() takes care that all supported modes are advertised, in addition use phy_support_asym_pause() to advertise pause modes. This way we don't have to deal with phylib internals directly. Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 6e05b83 commit 9cf9b84

File tree

1 file changed

+1
-2
lines changed
  • drivers/net/ethernet/realtek

1 file changed

+1
-2
lines changed

drivers/net/ethernet/realtek/r8169.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6451,8 +6451,7 @@ static int r8169_phy_connect(struct rtl8169_private *tp)
64516451
if (!tp->supports_gmii)
64526452
phy_set_max_speed(phydev, SPEED_100);
64536453

6454-
/* Ensure to advertise everything, incl. pause */
6455-
linkmode_copy(phydev->advertising, phydev->supported);
6454+
phy_support_asym_pause(phydev);
64566455

64576456
phy_attached_info(phydev);
64586457

0 commit comments

Comments
 (0)