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)
commit771046d7b1def64c00a5a47ca48526cbbacd7fe3
tree84c534da35aaf759c9186157b54386daa36f21ba
parentd4ec09acdb15cdb5afdb5cd03f6bceb5c3c690a5
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