diff options
author | Heiner Kallweit <hkallweit1@gmail.com> | 2019-02-18 21:27:18 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-02-21 13:03:06 -0800 |
commit | 1af9f16840e920c6193490ae58371fc5cc28bb01 (patch) | |
tree | 4c19c623bf88f17e404ca52d7650c96c6691e21a /include/linux/phy.h | |
parent | cc429d529126e5bbe867e839d7de4f75b9daad44 (diff) | |
download | lwn-1af9f16840e920c6193490ae58371fc5cc28bb01.tar.gz lwn-1af9f16840e920c6193490ae58371fc5cc28bb01.zip |
net: phy: add genphy_c45_check_and_restart_aneg
This function will be used by config_aneg callback implementations of
PHY drivers and allows to reduce boilerplate code.
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/phy.h')
-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 761131de4971..8e9fc576472b 100644 --- a/include/linux/phy.h +++ b/include/linux/phy.h @@ -1097,6 +1097,7 @@ int genphy_write_mmd_unsupported(struct phy_device *phdev, int devnum, /* Clause 45 PHY */ int genphy_c45_restart_aneg(struct phy_device *phydev); +int genphy_c45_check_and_restart_aneg(struct phy_device *phydev, bool restart); int genphy_c45_aneg_done(struct phy_device *phydev); int genphy_c45_read_link(struct phy_device *phydev); int genphy_c45_read_lpa(struct phy_device *phydev); |