]> git.baikalelectronics.ru Git - kernel.git/commit
mdio: Check MDIO_STAT1_FAULT in mdio45_links_ok()
authorBen Hutchings <bhutchings@solarflare.com>
Wed, 26 Aug 2009 08:16:58 +0000 (08:16 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 27 Aug 2009 00:38:53 +0000 (17:38 -0700)
commit0ec6ef691160d5411945ae84e91d3b5636371014
tree84c534da35aaf759c9186157b54386daa36f21ba
parent51038c26a4f33b8ccbf0571b49e68daa82062124
mdio: Check MDIO_STAT1_FAULT in mdio45_links_ok()

Some PHYs will report that the link is up even though there is a fault
condition.  Therefore, check the fault flag too.  We must also read
STAT2 to reset this flag.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/mdio.c