]> Pileus Git - ~andy/linux/blobdiff - drivers/net/sfc/falcon_xmac.c
sfc: Extend loopback mode enumeration
[~andy/linux] / drivers / net / sfc / falcon_xmac.c
index 898afc1b5ef1efe6c80ae951bd2d93521e889471..83da79279a9586abe75254ea21745094c9ebec8a 100644 (file)
@@ -249,7 +249,7 @@ static bool falcon_check_xaui_link_up(struct efx_nic *efx, int tries)
 {
        bool mac_up = falcon_xaui_link_ok(efx);
 
-       if ((efx->loopback_mode == LOOPBACK_NETWORK) ||
+       if (LOOPBACK_MASK(efx) & LOOPBACKS_EXTERNAL(efx) & LOOPBACKS_WS ||
            efx_phy_mode_disabled(efx->phy_mode))
                /* XAUI link is expected to be down */
                return mac_up;