diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2010-02-03 04:30:50 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-02-03 22:12:44 -0500 |
commit | 4f16c0739145476ba37a7fa9eea0c33850efc2ce (patch) | |
tree | 3ba72c3d44a3d7ca4814cdb83caf2ca4aa608a85 /drivers/net/sfc/tenxpress.c | |
parent | 7a6b8f6f7f74085a1330b0f9765d81bcea8c58b7 (diff) |
sfc: Replace PHY MDIO test with an 'alive' test
SFC9000-family boards do not all use MDIO PHYs, so we need a different
test for PHY aliveness.
Introduce a PHY operation test_alive(). For PHYs attached to Falcon,
use a common implementation based on the existing PHY MDIO test.
For PHYs managed through MCDI, use the appropriate MCDI request.
Change test name in ethtool from 'core mdio' to 'phy alive'.
Rename test_results::mdio to phy_alive and test_results::phy to phy_ext.
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/sfc/tenxpress.c')
-rw-r--r-- | drivers/net/sfc/tenxpress.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/sfc/tenxpress.c b/drivers/net/sfc/tenxpress.c index 3009c297c135..10db071bd837 100644 --- a/drivers/net/sfc/tenxpress.c +++ b/drivers/net/sfc/tenxpress.c | |||
@@ -842,6 +842,7 @@ struct efx_phy_operations falcon_sfx7101_phy_ops = { | |||
842 | .get_settings = tenxpress_get_settings, | 842 | .get_settings = tenxpress_get_settings, |
843 | .set_settings = tenxpress_set_settings, | 843 | .set_settings = tenxpress_set_settings, |
844 | .set_npage_adv = sfx7101_set_npage_adv, | 844 | .set_npage_adv = sfx7101_set_npage_adv, |
845 | .test_alive = efx_mdio_test_alive, | ||
845 | .test_name = sfx7101_test_name, | 846 | .test_name = sfx7101_test_name, |
846 | .run_tests = sfx7101_run_tests, | 847 | .run_tests = sfx7101_run_tests, |
847 | }; | 848 | }; |
@@ -856,6 +857,7 @@ struct efx_phy_operations falcon_sft9001_phy_ops = { | |||
856 | .get_settings = tenxpress_get_settings, | 857 | .get_settings = tenxpress_get_settings, |
857 | .set_settings = tenxpress_set_settings, | 858 | .set_settings = tenxpress_set_settings, |
858 | .set_npage_adv = sft9001_set_npage_adv, | 859 | .set_npage_adv = sft9001_set_npage_adv, |
860 | .test_alive = efx_mdio_test_alive, | ||
859 | .test_name = sft9001_test_name, | 861 | .test_name = sft9001_test_name, |
860 | .run_tests = sft9001_run_tests, | 862 | .run_tests = sft9001_run_tests, |
861 | }; | 863 | }; |