diff options
author | Raju Lakkaraju <Raju.Lakkaraju@microchip.com> | 2022-06-16 07:12:26 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-06-17 06:45:48 +0300 |
commit | 311abcdddc00aa733211fb3e92815155066896e1 (patch) | |
tree | c22c395db604826390e7889ba4f630c272fa2742 /drivers | |
parent | 46b777ad9a8c269113634cee6a380bc4e53f3964 (diff) | |
download | linux-311abcdddc00aa733211fb3e92815155066896e1.tar.xz |
net: phy: add support to get Master-Slave configuration
Add support to Master-Slave configuration and state
Signed-off-by: Raju Lakkaraju <Raju.Lakkaraju@microchip.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/phy/mxl-gpy.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/phy/mxl-gpy.c b/drivers/net/phy/mxl-gpy.c index 5ce1bf03bbd7..6c4da2f9e90a 100644 --- a/drivers/net/phy/mxl-gpy.c +++ b/drivers/net/phy/mxl-gpy.c @@ -295,6 +295,9 @@ static void gpy_update_interface(struct phy_device *phydev) ret); break; } + + if (phydev->speed == SPEED_2500 || phydev->speed == SPEED_1000) + genphy_read_master_slave(phydev); } static int gpy_read_status(struct phy_device *phydev) |