aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/phy.h
diff options
context:
space:
mode:
authorFlorian Fainelli <f.fainelli@gmail.com>2018-03-01 16:08:56 -0800
committerDavid S. Miller <davem@davemloft.net>2018-03-01 21:23:34 -0500
commite8a714e086e42972fd0e2d59e90c28eb2d839429 (patch)
treef49dc2eb01b2180016ba3da95158fea6e0d13c8b /include/linux/phy.h
parentnet: phy: aquantia: Utilize genphy_c45_aneg_done() (diff)
downloadlinux-dev-e8a714e086e42972fd0e2d59e90c28eb2d839429.tar.xz
linux-dev-e8a714e086e42972fd0e2d59e90c28eb2d839429.zip
net: phy: Export gen10g_* functions
In order to remove a fair amount of duplication in the different 10G PHY drivers, export all gen10g_* functions to be able to make use of those. While we are at it, rename gen10g_soft_reset() to gen10g_no_soft_reset() to illustrate what it does. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Diffstat (limited to '')
-rw-r--r--include/linux/phy.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/phy.h b/include/linux/phy.h
index 5a0c3e53e7c2..6e38c699b753 100644
--- a/include/linux/phy.h
+++ b/include/linux/phy.h
@@ -994,6 +994,14 @@ int genphy_c45_pma_setup_forced(struct phy_device *phydev);
int genphy_c45_an_disable_aneg(struct phy_device *phydev);
int genphy_c45_read_mdix(struct phy_device *phydev);
+/* The gen10g_* functions are the old Clause 45 stub */
+int gen10g_config_aneg(struct phy_device *phydev);
+int gen10g_read_status(struct phy_device *phydev);
+int gen10g_no_soft_reset(struct phy_device *phydev);
+int gen10g_config_init(struct phy_device *phydev);
+int gen10g_suspend(struct phy_device *phydev);
+int gen10g_resume(struct phy_device *phydev);
+
static inline int phy_read_status(struct phy_device *phydev)
{
if (!phydev->drv)