Skip to content

Commit 65c5877

Browse files
lunndavem330
authored andcommitted
ravb: Disable Pause Advertisement
The previous commit to ravb had the side effect of making the PHY advertise Pause and Asym Pause, which previously did not happen. By default, phydev->supported has both forms of pause enabled, but phydev->advertising does not. The new phy_remove_link_mode() copies phydev->supported to phydev->advertising after removing the requested link mode. These Pause configuration bits appears it stops the PHY from completing Auto-Neg and the link remains down. Be explicit and remove the Pause and Asym Pause modes, so restoring the old behavior. Fixes: 41124fa ("net: ethernet: Add helper to remove a supported link mode") Reported-by: Simon Horman <horms@verge.net.au> Signed-off-by: Andrew Lunn <andrew@lunn.ch> Reviewed-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent b4d0782 commit 65c5877

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/net/ethernet/renesas/ravb_main.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1081,9 +1081,11 @@ static int ravb_phy_init(struct net_device *ndev)
10811081
netdev_info(ndev, "limited PHY to 100Mbit/s\n");
10821082
}
10831083

1084-
/* 10BASE is not supported */
1084+
/* 10BASE, Pause and Asym Pause is not supported */
10851085
phy_remove_link_mode(phydev, ETHTOOL_LINK_MODE_10baseT_Half_BIT);
10861086
phy_remove_link_mode(phydev, ETHTOOL_LINK_MODE_10baseT_Full_BIT);
1087+
phy_remove_link_mode(phydev, ETHTOOL_LINK_MODE_Pause_BIT);
1088+
phy_remove_link_mode(phydev, ETHTOOL_LINK_MODE_Asym_Pause_BIT);
10871089

10881090
phy_attached_info(phydev);
10891091

0 commit comments

Comments
 (0)