diff options
author | Andrew Lunn <andrew@lunn.ch> | 2018-09-12 01:53:15 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-09-12 20:24:21 -0700 |
commit | af8d9bb2f2f405ad541794b46f9d7bc70f13e5cb (patch) | |
tree | 1da441f208e3228e6888456e78a7b972889ccc6d /drivers/net/ethernet/cortina | |
parent | 41124fa64d4b298b82266b7ddbefc43540b77b44 (diff) | |
download | linux-af8d9bb2f2f405ad541794b46f9d7bc70f13e5cb.tar.gz linux-af8d9bb2f2f405ad541794b46f9d7bc70f13e5cb.tar.bz2 linux-af8d9bb2f2f405ad541794b46f9d7bc70f13e5cb.zip |
net: ethernet: Add helper for MACs which support asym pause
Rather than have the MAC drivers manipulate phydev members to indicate
they support Asym Pause, add a helper function.
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/cortina')
-rw-r--r-- | drivers/net/ethernet/cortina/gemini.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/ethernet/cortina/gemini.c b/drivers/net/ethernet/cortina/gemini.c index 2b46c0de90d0..ceec467f590d 100644 --- a/drivers/net/ethernet/cortina/gemini.c +++ b/drivers/net/ethernet/cortina/gemini.c @@ -373,8 +373,7 @@ static int gmac_setup_phy(struct net_device *netdev) netdev->phydev = phy; phy_set_max_speed(phy, SPEED_1000); - phy->supported |= SUPPORTED_Asym_Pause | SUPPORTED_Pause; - phy->advertising = phy->supported; + phy_support_asym_pause(phy); /* set PHY interface type */ switch (phy->interface) { |