diff options
author | Andrew Lunn <andrew@lunn.ch> | 2018-10-20 23:41:28 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-10-23 05:38:22 +0300 |
commit | 92c9d5627a79b02299dd13e3e0ec695475726cf8 (patch) | |
tree | 88c137a8ce369e568b5800f0ffea9503e5618f95 /drivers/net/phy | |
parent | 4b78030b8f2ca29c267b4ca38e900d92428c412e (diff) | |
download | linux-92c9d5627a79b02299dd13e3e0ec695475726cf8.tar.xz |
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: Labbe Corentin <clabbe@baylibre.com>
Fixes: c306ad36184f ("net: ethernet: Add helper for MACs which support pause")
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Tested-by: Corentin Labbe <clabbe@baylibre.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/phy')
-rw-r--r-- | drivers/net/phy/phy_device.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/phy/phy_device.c b/drivers/net/phy/phy_device.c index 43cb08dcce81..ab33d1777132 100644 --- a/drivers/net/phy/phy_device.c +++ b/drivers/net/phy/phy_device.c @@ -1940,6 +1940,7 @@ EXPORT_SYMBOL(phy_remove_link_mode); */ void phy_support_sym_pause(struct phy_device *phydev) { + phydev->supported &= ~SUPPORTED_Asym_Pause; phydev->supported |= SUPPORTED_Pause; phydev->advertising = phydev->supported; } |