Skip to content

Commit

Permalink
phy: keep pause flags in phy driver features
Browse files Browse the repository at this point in the history
genphy_config_init() masked out pause flags set in phy driver structure.
Pause flags needs to be preserved in phydev->supported &
phydev->advertising.

Signed-off-by: Woojung Huh <woojung.huh@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Woojung.Huh@microchip.com authored and David S. Miller committed Feb 17, 2016
1 parent 1543b76 commit cd772de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/phy/phy_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -1410,7 +1410,7 @@ int genphy_config_init(struct phy_device *phydev)

features = (SUPPORTED_TP | SUPPORTED_MII
| SUPPORTED_AUI | SUPPORTED_FIBRE |
SUPPORTED_BNC);
SUPPORTED_BNC | SUPPORTED_Pause | SUPPORTED_Asym_Pause);

/* Do we support autonegotiation? */
val = phy_read(phydev, MII_BMSR);
Expand Down

0 comments on commit cd772de

Please sign in to comment.