net: phy: use genphy_read_abilities in genphy driver
authorHeiner Kallweit <hkallweit1@gmail.com>
Wed, 27 Mar 2019 20:59:33 +0000 (21:59 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 Apr 2019 20:09:56 +0000 (13:09 -0700)
commit2a4d8674b8ec1fc0cf91a4d59b0ca119052036ce
tree92c4db8a538e7742910ebf9e1c5063e375ec0f6b
parent045925e3fe5b98e402337a176d154252c56cef2e
net: phy: use genphy_read_abilities in genphy driver

Currently the genphy driver populates phydev->supported like this:
First all possible feature bits are set, then genphy_config_init()
reads the available features from the chip and remove all unsupported
features from phydev->supported. This can be simplified by using
genphy_read_abilities().

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phy_device.c