]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc3fe7e3cf660fbcede8e491188b88c381d833546
tree92c4db8a538e7742910ebf9e1c5063e375ec0f6b
parent4b3b5259ca4ad3e364f90666cbe812b7774c285c
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