]> git.baikalelectronics.ru Git - kernel.git/commit
sfc: Replace PHY MDIO test with an 'alive' test
authorBen Hutchings <bhutchings@solarflare.com>
Wed, 3 Feb 2010 09:30:50 +0000 (09:30 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 4 Feb 2010 03:12:44 +0000 (19:12 -0800)
commitd830f5be0020b1dad1baeff27ef7fcbd36f6ea25
tree3ba72c3d44a3d7ca4814cdb83caf2ca4aa608a85
parent61a76d2bff6d1f3f999b6a70b15dac3bc896c0ed
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>
drivers/net/sfc/ethtool.c
drivers/net/sfc/mcdi_phy.c
drivers/net/sfc/mdio_10g.c
drivers/net/sfc/mdio_10g.h
drivers/net/sfc/net_driver.h
drivers/net/sfc/qt202x_phy.c
drivers/net/sfc/selftest.c
drivers/net/sfc/selftest.h
drivers/net/sfc/tenxpress.c