sfc: Include XGXS in XMAC link status check except in XGMII loopback
authorBen Hutchings <bhutchings@solarflare.com>
Wed, 23 Dec 2009 13:46:47 +0000 (13:46 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 24 Dec 2009 03:09:05 +0000 (19:09 -0800)
commita355020af415947c7dee7e00a91360d11b6a9b47
tree56b89138aca7a806e0ee2d4251243a980bdf9276
parentff3b00a0fcaab89ff885e9f0f4ad83c4ced788f4
sfc: Include XGXS in XMAC link status check except in XGMII loopback

The XGXS block may not get a link immediately in XGXS or XAUI loopback
modes, so we still need to check it.  Split falcon_xaui_link_ok() into
falcon_xgxs_link_ok(), which checks only the Falcon XGXS block, and
falcon_xmac_link_ok(), which checks one or both sides of the link as
appropriate.  Also rename falcon_check_xaui_link() to
falcon_xmac_link_ok_retry().

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