Commit 92c9d562 authored by Andrew Lunn's avatar Andrew Lunn Committed by David S. Miller

net: phy: phy_support_sym_pause: Clear Asym Pause

When indicating the MAC supports Symmetric Pause, clear the Asymmetric
Pause bit, which could of been already set is the PHY supports it.
Reported-by: default avatarLabbe Corentin <clabbe@baylibre.com>
Fixes: c306ad36 ("net: ethernet: Add helper for MACs which support pause")
Signed-off-by: default avatarAndrew Lunn <andrew@lunn.ch>
Tested-by: default avatarCorentin Labbe <clabbe@baylibre.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4b78030b
...@@ -1940,6 +1940,7 @@ EXPORT_SYMBOL(phy_remove_link_mode); ...@@ -1940,6 +1940,7 @@ EXPORT_SYMBOL(phy_remove_link_mode);
*/ */
void phy_support_sym_pause(struct phy_device *phydev) void phy_support_sym_pause(struct phy_device *phydev)
{ {
phydev->supported &= ~SUPPORTED_Asym_Pause;
phydev->supported |= SUPPORTED_Pause; phydev->supported |= SUPPORTED_Pause;
phydev->advertising = phydev->supported; phydev->advertising = phydev->supported;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment