net: phy: let genphy_c45_read_abilities also check aneg capability
authorHeiner Kallweit <hkallweit1@gmail.com>
Fri, 22 Feb 2019 07:23:04 +0000 (08:23 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 24 Feb 2019 20:34:47 +0000 (12:34 -0800)
commitb6a4119d9d01633d78409fed457fbe840c757f79
tree111e47f2b5f70b3dd47cdbe7e4961dd05722480f
parent70f3522614e60b6125eff5f9dd7c887543812187
net: phy: let genphy_c45_read_abilities also check aneg capability

When using genphy_c45_read_abilities() as get_features callback we
also have to set the autoneg capability in phydev->supported.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Reviewed-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phy-c45.c