summaryrefslogtreecommitdiff
path: root/drivers/net/phy/phy.c
diff options
context:
space:
mode:
authorDavid Thomson <david.thomson@alliedtelesis.co.nz>2015-07-10 16:28:25 +1200
committerDavid S. Miller <davem@davemloft.net>2015-07-10 23:17:32 -0700
commit239aa55b9496144f89670b545b5698e6c989f710 (patch)
treebe0bbed05631a3bc8ae273d64319dad5b01ebb0a /drivers/net/phy/phy.c
parent634ec36cc0ab9d8dda0f2c101fa28d2e2a61b9eb (diff)
net: phy: Support setting polarity in marvell phy driver
Support manually setting the polarity to mdi or mdix Signed-off-by: David Thomson <david.thomson@alliedtelesis.co.nz> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/phy/phy.c')
-rw-r--r--drivers/net/phy/phy.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/phy/phy.c b/drivers/net/phy/phy.c
index 47693a9ebd3a..84b1fba58ac3 100644
--- a/drivers/net/phy/phy.c
+++ b/drivers/net/phy/phy.c
@@ -379,6 +379,7 @@ int phy_ethtool_gset(struct phy_device *phydev, struct ethtool_cmd *cmd)
cmd->transceiver = phy_is_internal(phydev) ?
XCVR_INTERNAL : XCVR_EXTERNAL;
cmd->autoneg = phydev->autoneg;
+ cmd->eth_tp_mdix_ctrl = phydev->mdix;
return 0;
}