]> 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)
commitd2e864c3ee3ee55158a8ecd9128aa3eb2793509a
tree92c4db8a538e7742910ebf9e1c5063e375ec0f6b
parentadf61417f0186848daa60c8ec6618656a136c80a
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