aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/phy.h
diff options
context:
space:
mode:
authorHeiner Kallweit <hkallweit1@gmail.com>2019-02-18 21:27:18 +0100
committerDavid S. Miller <davem@davemloft.net>2019-02-21 13:03:06 -0800
commit1af9f16840e920c6193490ae58371fc5cc28bb01 (patch)
tree4c19c623bf88f17e404ca52d7650c96c6691e21a /include/linux/phy.h
parentnet: phy: use genphy_config_eee_advert in genphy_c45_an_config_aneg (diff)
downloadlinux-dev-1af9f16840e920c6193490ae58371fc5cc28bb01.tar.xz
linux-dev-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 '')
-rw-r--r--include/linux/phy.h1
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);