diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2008-12-13 09:00:49 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-12-13 09:00:49 +0300 |
commit | 6f158d5f29b420438e907d72cb111ddb9973f00a (patch) | |
tree | 38d7696c47a706447c6bf8e66f52a5854d781464 /drivers/net/sfc/selftest.c | |
parent | e6fa2eb789f49dc51a20d3db0d410bc8158abb43 (diff) | |
download | linux-6f158d5f29b420438e907d72cb111ddb9973f00a.tar.xz |
sfc: Add support for SFN4111T
Add support code for the SFN4111T 100/1000/10GBASE-T reference design,
based in part on the existing code for the SFE4001.
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/sfc/selftest.c')
-rw-r--r-- | drivers/net/sfc/selftest.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/drivers/net/sfc/selftest.c b/drivers/net/sfc/selftest.c index 578b7f410ed4..6bb09f263b33 100644 --- a/drivers/net/sfc/selftest.c +++ b/drivers/net/sfc/selftest.c @@ -702,8 +702,15 @@ int efx_offline_test(struct efx_nic *efx, */ mutex_lock(&efx->mac_lock); efx->port_inhibited = true; - if (efx->loopback_modes) - efx->loopback_mode = __ffs(efx->loopback_modes); + if (efx->loopback_modes) { + /* We need the 312 clock from the PHY to test the XMAC + * registers, so move into XGMII loopback if available */ + if (efx->loopback_modes & (1 << LOOPBACK_XGMII)) + efx->loopback_mode = LOOPBACK_XGMII; + else + efx->loopback_mode = __ffs(efx->loopback_modes); + } + __efx_reconfigure_port(efx); mutex_unlock(&efx->mac_lock); |