Skip to content

Commit

Permalink
r8169: make use of phy_set_asym_pause
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
hkallweit authored and davem330 committed May 5, 2019
1 parent 6e05b83 commit 9cf9b84
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/net/ethernet/realtek/r8169.c
Original file line number Diff line number Diff line change
Expand Up @@ -6451,8 +6451,7 @@ static int r8169_phy_connect(struct rtl8169_private *tp)
if (!tp->supports_gmii)
phy_set_max_speed(phydev, SPEED_100);

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

phy_attached_info(phydev);

Expand Down

0 comments on commit 9cf9b84

Please sign in to comment.