aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/sfc
diff options
context:
space:
mode:
authorBen Hutchings <bhutchings@solarflare.com>2009-03-04 04:51:12 -0500
committerDavid S. Miller <davem@davemloft.net>2009-03-04 20:40:20 -0500
commitca83db369c1c633142c08dd0bfafca6ac4247c63 (patch)
treed927caa3ecc9f55bff5bacf0cbcce332fe2b6198 /drivers/net/sfc
parent0c5c2d3089068d4aa378f7a40d2b5ad9d4f52ce8 (diff)
sfc: Fix efx_ethtool_nway_result() to use clause 45 MDIO registers
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/sfc')
-rw-r--r--drivers/net/sfc/ethtool.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/net/sfc/ethtool.c b/drivers/net/sfc/ethtool.c
index 7b5924c039b3..589d13292969 100644
--- a/drivers/net/sfc/ethtool.c
+++ b/drivers/net/sfc/ethtool.c
@@ -529,7 +529,14 @@ static int efx_ethtool_nway_reset(struct net_device *net_dev)
529{ 529{
530 struct efx_nic *efx = netdev_priv(net_dev); 530 struct efx_nic *efx = netdev_priv(net_dev);
531 531
532 return mii_nway_restart(&efx->mii); 532 if (efx->phy_op->mmds & DEV_PRESENT_BIT(MDIO_MMD_AN)) {
533 mdio_clause45_set_flag(efx, efx->mii.phy_id, MDIO_MMD_AN,
534 MDIO_MMDREG_CTRL1,
535 __ffs(BMCR_ANRESTART), true);
536 return 0;
537 }
538
539 return -EOPNOTSUPP;
533} 540}
534 541
535static u32 efx_ethtool_get_link(struct net_device *net_dev) 542static u32 efx_ethtool_get_link(struct net_device *net_dev)