aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorHeiner Kallweit <hkallweit1@gmail.com>2018-07-03 22:34:54 +0200
committerDavid S. Miller <davem@davemloft.net>2018-07-05 09:44:02 +0900
commitdf8ed346d4a806a6eef2db5924285e839604b3f9 (patch)
tree776a094275b9d4810d2ac9ee3345837d81459f14 /include
parentsmsc75xx: Add workaround for gigabit link up hardware errata. (diff)
downloadlinux-dev-df8ed346d4a806a6eef2db5924285e839604b3f9.tar.xz
linux-dev-df8ed346d4a806a6eef2db5924285e839604b3f9.zip
net: phy: fix flag masking in __set_phy_supported
Currently also the pause flags are removed from phydev->supported because they're not included in PHY_DEFAULT_FEATURES. I don't think this is intended, especially when considering that this function can be called via phy_set_max_speed() anywhere in a driver. Change the masking to mask out only the values we're going to change. In addition remove the misleading comment, job of this small function is just to adjust the supported and advertised speeds. Fixes: f3a6bd393c2c ("phylib: Add phy_set_max_speed helper") Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> Reviewed-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 '')
0 files changed, 0 insertions, 0 deletions