projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0c5c2d3
)
sfc: Fix efx_ethtool_nway_result() to use clause 45 MDIO registers
author
Ben Hutchings
<bhutchings@solarflare.com>
Wed, 4 Mar 2009 09:51:12 +0000
(09:51 +0000)
committer
David S. Miller
<davem@davemloft.net>
Thu, 5 Mar 2009 01:40:20 +0000
(17:40 -0800)
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/sfc/ethtool.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/sfc/ethtool.c
b/drivers/net/sfc/ethtool.c
index 7b5924c039b31508069591b2dd977e8417614525..589d1329296913e8ac38b3d3cf1ae1dffd95704b 100644
(file)
--- 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)
{
struct efx_nic *efx = netdev_priv(net_dev);
- return mii_nway_restart(&efx->mii);
+ if (efx->phy_op->mmds & DEV_PRESENT_BIT(MDIO_MMD_AN)) {
+ mdio_clause45_set_flag(efx, efx->mii.phy_id, MDIO_MMD_AN,
+ MDIO_MMDREG_CTRL1,
+ __ffs(BMCR_ANRESTART), true);
+ return 0;
+ }
+
+ return -EOPNOTSUPP;
}
static u32 efx_ethtool_get_link(struct net_device *net_dev)