aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/phy/phy.c
diff options
context:
space:
mode:
authorDavid Thomson <david.thomson@alliedtelesis.co.nz>2015-07-10 13:56:54 +1200
committerDavid S. Miller <davem@davemloft.net>2015-07-10 23:17:32 -0700
commit634ec36cc0ab9d8dda0f2c101fa28d2e2a61b9eb (patch)
tree77787306c4bc5b6d4937dd5e705b42a96fee5ac4 /drivers/net/phy/phy.c
parenttcp: do not export tcp_init_xmit_timers() (diff)
downloadlinux-dev-634ec36cc0ab9d8dda0f2c101fa28d2e2a61b9eb.tar.xz
linux-dev-634ec36cc0ab9d8dda0f2c101fa28d2e2a61b9eb.zip
net: phy: Pass mdix ethtool setting through to phy driver
Pass the mdix setting from ethtool down to the phy driver, to allow driver specific implementations of manually setting the polarity. Signed-off-by: David Thomson <david.thomson@alliedtelesis.co.nz> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/phy/phy.c')
-rw-r--r--drivers/net/phy/phy.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/phy/phy.c b/drivers/net/phy/phy.c
index b2197b506acb..47693a9ebd3a 100644
--- a/drivers/net/phy/phy.c
+++ b/drivers/net/phy/phy.c
@@ -353,6 +353,8 @@ int phy_ethtool_sset(struct phy_device *phydev, struct ethtool_cmd *cmd)
phydev->duplex = cmd->duplex;
+ phydev->mdix = cmd->eth_tp_mdix_ctrl;
+
/* Restart the PHY */
phy_start_aneg(phydev);