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>
This commit is contained in:
committed by
David S. Miller
parent
e6fa2eb789
commit
6f158d5f29
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user