From: Andrew Lunn Date: Sat, 20 Oct 2018 20:41:28 +0000 (+0200) Subject: net: phy: phy_support_sym_pause: Clear Asym Pause X-Git-Tag: v5.4-rc1~2403^2~19 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=92c9d5627a79b02299dd13e3e0ec695475726cf8;p=platform%2Fkernel%2Flinux-rpi.git 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 Fixes: c306ad36184f ("net: ethernet: Add helper for MACs which support pause") Signed-off-by: Andrew Lunn Tested-by: Corentin Labbe Signed-off-by: David S. Miller --- diff --git a/drivers/net/phy/phy_device.c b/drivers/net/phy/phy_device.c index 43cb08d..ab33d17 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; }