diff options
author | Raju Lakkaraju <Raju.Lakkaraju@microsemi.com> | 2016-11-29 15:16:49 +0530 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-12-01 11:26:48 -0500 |
commit | 4e26c5c31570b2b4d8dd45b73e0c4e358f1eb2b4 (patch) | |
tree | 31de195b54a9557e8c673487ad1d086d9799ac9f /drivers/net/phy/microchip.c | |
parent | 233275ecf3c1047f69e5def0303a4e615c526568 (diff) | |
download | linux-4e26c5c31570b2b4d8dd45b73e0c4e358f1eb2b4.tar.gz linux-4e26c5c31570b2b4d8dd45b73e0c4e358f1eb2b4.tar.bz2 linux-4e26c5c31570b2b4d8dd45b73e0c4e358f1eb2b4.zip |
net: phy: Fix the mdix_ctrl changes
PHY drivers to have an eth_tp_mdix_ctrl to indicate what is the configured
MDI setting, and read eth_tp_mdi to indicate what is the current status,
Add new parameter mdix_ctrl in phy_device structure and fix driver.
Signed-off-by: Raju Lakkaraju <Raju.Lakkaraju@microsemi.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/phy/microchip.c')
-rw-r--r-- | drivers/net/phy/microchip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/phy/microchip.c b/drivers/net/phy/microchip.c index eb4db2200287..12825a5feb3f 100644 --- a/drivers/net/phy/microchip.c +++ b/drivers/net/phy/microchip.c @@ -111,7 +111,7 @@ static void lan88xx_set_mdix(struct phy_device *phydev) int buf; int val; - switch (phydev->mdix) { + switch (phydev->mdix_ctrl) { case ETH_TP_MDI: val = LAN88XX_EXT_MODE_CTRL_MDI_; break; |