diff options
| author | David S. Miller <davem@davemloft.net> | 2019-04-02 23:09:56 +0300 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2019-04-02 23:09:56 +0300 |
| commit | fa288a42646c3294c5061812c2314a822bfd537c (patch) | |
| tree | 4f06fed3cb6542ec37f4083f33940e8a0d532c74 /include/linux | |
| parent | 6d670497e01803b486aa72cc1a718401ab986896 (diff) | |
| parent | 48e4adf9afbe5256d0dab383baf310889973811d (diff) | |
| download | linux-fa288a42646c3294c5061812c2314a822bfd537c.tar.xz | |
Merge branch 'genphy_read_abilities'
Heiner Kallweit says:
====================
net: phy: add and use new function genphy_read_abilities
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).
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/phy.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/phy.h b/include/linux/phy.h index 34084892a466..ad88f063e50f 100644 --- a/include/linux/phy.h +++ b/include/linux/phy.h @@ -1075,6 +1075,7 @@ void phy_attached_info(struct phy_device *phydev); /* Clause 22 PHY */ int genphy_config_init(struct phy_device *phydev); +int genphy_read_abilities(struct phy_device *phydev); int genphy_setup_forced(struct phy_device *phydev); int genphy_restart_aneg(struct phy_device *phydev); int genphy_config_eee_advert(struct phy_device *phydev); |
