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>
This commit is contained in:

committed by
David S. Miller

parent
41124fa64d
commit
af8d9bb2f2
@@ -879,8 +879,8 @@ static bool xgbe_phy_finisar_phy_quirks(struct xgbe_prv_data *pdata)
|
||||
phy_write(phy_data->phydev, 0x00, 0x9140);
|
||||
|
||||
phy_data->phydev->supported = PHY_GBIT_FEATURES;
|
||||
phy_data->phydev->supported |= SUPPORTED_Pause | SUPPORTED_Asym_Pause;
|
||||
phy_data->phydev->advertising = phy_data->phydev->supported;
|
||||
phy_support_asym_pause(phy_data->phydev);
|
||||
|
||||
netif_dbg(pdata, drv, pdata->netdev,
|
||||
"Finisar PHY quirk in place\n");
|
||||
@@ -951,8 +951,8 @@ static bool xgbe_phy_belfuse_phy_quirks(struct xgbe_prv_data *pdata)
|
||||
phy_write(phy_data->phydev, 0x00, reg & ~0x00800);
|
||||
|
||||
phy_data->phydev->supported = PHY_GBIT_FEATURES;
|
||||
phy_data->phydev->supported |= SUPPORTED_Pause | SUPPORTED_Asym_Pause;
|
||||
phy_data->phydev->advertising = phy_data->phydev->supported;
|
||||
phy_support_asym_pause(phy_data->phydev);
|
||||
|
||||
netif_dbg(pdata, drv, pdata->netdev,
|
||||
"BelFuse PHY quirk in place\n");
|
||||
|
Reference in New Issue
Block a user