Similar to genphy_c45_pma_read_abilities() add a function to dynamically detect the abilities of a Clause 22 PHY. This is mainly copied from genphy_config_init(). Main benefit is that PHY drivers no longer have to specify whether they support GBit or not (provided they keep to the C22 standard).
Heiner Kallweit (3): net: phy: add genphy_read_abilities net: phy: use genphy_read_abilities in genphy driver net: phy: realtek: use genphy_read_abilities drivers/net/phy/phy_device.c | 51 ++++++++++++++++++++++++++++++++++-- drivers/net/phy/realtek.c | 36 +++++++++---------------- include/linux/phy.h | 1 + 3 files changed, 62 insertions(+), 26 deletions(-) -- 2.21.0