commit | 2a4d8674b8ec1fc0cf91a4d59b0ca119052036ce | [log] [tgz] |
---|---|---|
author | Heiner Kallweit <hkallweit1@gmail.com> | Wed Mar 27 21:59:33 2019 +0100 |
committer | David S. Miller <davem@davemloft.net> | Tue Apr 02 13:09:56 2019 -0700 |
tree | 92c4db8a538e7742910ebf9e1c5063e375ec0f6b | |
parent | 045925e3fe5b98e402337a176d154252c56cef2e [diff] |
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>