net: ethernet: Fix up drivers masking pause support
PHY drivers don't indicate they support pause. They expect MAC drivers to enable its support if the MAC has the needed hardware. Thus MAC drivers should not mask Pause support, but enable it. Change a few ANDs to ORs. 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
00eb2243b9
commit
04b7d41d80
@@ -1051,7 +1051,7 @@ static int smsc911x_mii_probe(struct net_device *dev)
|
||||
phy_set_max_speed(phydev, SPEED_100);
|
||||
|
||||
/* mask with MAC supported features */
|
||||
phydev->supported &= (SUPPORTED_Pause | SUPPORTED_Asym_Pause);
|
||||
phydev->supported |= (SUPPORTED_Pause | SUPPORTED_Asym_Pause);
|
||||
phydev->advertising = phydev->supported;
|
||||
|
||||
pdata->last_duplex = -1;
|
||||
|
@@ -1138,7 +1138,7 @@ static int smsc9420_mii_probe(struct net_device *dev)
|
||||
phy_set_max_speed(phydev, SPEED_100);
|
||||
|
||||
/* mask with MAC supported features */
|
||||
phydev->supported &= (SUPPORTED_Pause | SUPPORTED_Asym_Pause);
|
||||
phydev->supported |= (SUPPORTED_Pause | SUPPORTED_Asym_Pause);
|
||||
phydev->advertising = phydev->supported;
|
||||
|
||||
phy_attached_info(phydev);
|
||||
|
Reference in New Issue
Block a user