summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorArun Ramadoss <arun.ramadoss@microchip.com>2022-03-07 21:45:14 +0530
committerPaolo Abeni <pabeni@redhat.com>2022-03-08 13:34:33 +0100
commit64807c2321512f67959e51f09e302c145c336184 (patch)
tree906520693dbd2e2e415eca5cd768033386367ced /include
parent6c43a920a5cd26511059751f594c3ac05f9a6125 (diff)
net: phy: exported the genphy_read_master_slave function
genphy_read_master_slave function allows to configure the master/slave for gigabit phys only. In order to use this function irrespective of speed, moved the speed check to the genphy_read_status call. Signed-off-by: Arun Ramadoss <arun.ramadoss@microchip.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'include')
-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 cd08cf1a8b0d..20beeaa7443b 100644
--- a/include/linux/phy.h
+++ b/include/linux/phy.h
@@ -1578,6 +1578,7 @@ int genphy_update_link(struct phy_device *phydev);
int genphy_read_lpa(struct phy_device *phydev);
int genphy_read_status_fixed(struct phy_device *phydev);
int genphy_read_status(struct phy_device *phydev);
+int genphy_read_master_slave(struct phy_device *phydev);
int genphy_suspend(struct phy_device *phydev);
int genphy_resume(struct phy_device *phydev);
int genphy_loopback(struct phy_device *phydev, bool enable);