diff options
| author | Andrew Lunn <andrew@lunn.ch> | 2018-09-11 19:53:15 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2018-09-12 23:24:21 -0400 |
| commit | af8d9bb2f2f405ad541794b46f9d7bc70f13e5cb (patch) | |
| tree | 1da441f208e3228e6888456e78a7b972889ccc6d /drivers/net/ethernet/amd | |
| parent | 41124fa64d4b298b82266b7ddbefc43540b77b44 (diff) | |
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/amd')
| -rw-r--r-- | drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c b/drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c index 3ceb4f95ca7c..289129011b9f 100644 --- a/drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c +++ b/drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c | |||
| @@ -879,8 +879,8 @@ static bool xgbe_phy_finisar_phy_quirks(struct xgbe_prv_data *pdata) | |||
| 879 | phy_write(phy_data->phydev, 0x00, 0x9140); | 879 | phy_write(phy_data->phydev, 0x00, 0x9140); |
| 880 | 880 | ||
| 881 | phy_data->phydev->supported = PHY_GBIT_FEATURES; | 881 | phy_data->phydev->supported = PHY_GBIT_FEATURES; |
| 882 | phy_data->phydev->supported |= SUPPORTED_Pause | SUPPORTED_Asym_Pause; | ||
| 883 | phy_data->phydev->advertising = phy_data->phydev->supported; | 882 | phy_data->phydev->advertising = phy_data->phydev->supported; |
| 883 | phy_support_asym_pause(phy_data->phydev); | ||
| 884 | 884 | ||
| 885 | netif_dbg(pdata, drv, pdata->netdev, | 885 | netif_dbg(pdata, drv, pdata->netdev, |
| 886 | "Finisar PHY quirk in place\n"); | 886 | "Finisar PHY quirk in place\n"); |
| @@ -951,8 +951,8 @@ static bool xgbe_phy_belfuse_phy_quirks(struct xgbe_prv_data *pdata) | |||
| 951 | phy_write(phy_data->phydev, 0x00, reg & ~0x00800); | 951 | phy_write(phy_data->phydev, 0x00, reg & ~0x00800); |
| 952 | 952 | ||
| 953 | phy_data->phydev->supported = PHY_GBIT_FEATURES; | 953 | phy_data->phydev->supported = PHY_GBIT_FEATURES; |
| 954 | phy_data->phydev->supported |= SUPPORTED_Pause | SUPPORTED_Asym_Pause; | ||
| 955 | phy_data->phydev->advertising = phy_data->phydev->supported; | 954 | phy_data->phydev->advertising = phy_data->phydev->supported; |
| 955 | phy_support_asym_pause(phy_data->phydev); | ||
| 956 | 956 | ||
| 957 | netif_dbg(pdata, drv, pdata->netdev, | 957 | netif_dbg(pdata, drv, pdata->netdev, |
| 958 | "BelFuse PHY quirk in place\n"); | 958 | "BelFuse PHY quirk in place\n"); |
