~ubuntu-branches/ubuntu/quantal/linux-linaro-mx51/quantal

« back to all changes in this revision

Viewing changes to drivers/net/sfc/selftest.c

  • Committer: Package Import Robot
  • Author(s): John Rigby, John Rigby
  • Date: 2011-09-26 10:44:23 UTC
  • Revision ID: package-import@ubuntu.com-20110926104423-3o58a3c1bj7x00rs
Tags: 3.0.0-1007.9
[ John Rigby ]

Enable crypto modules and remove crypto-modules from
exclude-module files
LP: #826021

Show diffs side-by-side

added added

removed removed

Lines of Context:
695
695
        /* Offline (i.e. disruptive) testing
696
696
         * This checks MAC and PHY loopback on the specified port. */
697
697
 
698
 
        /* force the carrier state off so the kernel doesn't transmit during
699
 
         * the loopback test, and the watchdog timeout doesn't fire. Also put
700
 
         * falcon into loopback for the register test.
 
698
        /* Detach the device so the kernel doesn't transmit during the
 
699
         * loopback test and the watchdog timeout doesn't fire.
701
700
         */
 
701
        netif_device_detach(efx->net_dev);
 
702
 
702
703
        mutex_lock(&efx->mac_lock);
703
 
        efx->port_inhibited = true;
704
704
        if (efx->loopback_modes) {
705
705
                /* We need the 312 clock from the PHY to test the XMAC
706
706
                 * registers, so move into XGMII loopback if available */
750
750
        /* restore the PHY to the previous state */
751
751
        mutex_lock(&efx->mac_lock);
752
752
        efx->phy_mode = phy_mode;
753
 
        efx->port_inhibited = false;
754
753
        efx->loopback_mode = loopback_mode;
755
754
        __efx_reconfigure_port(efx);
756
755
        mutex_unlock(&efx->mac_lock);
757
756
 
758
 
        netif_tx_wake_all_queues(efx->net_dev);
 
757
        netif_device_attach(efx->net_dev);
759
758
 
760
759
        return rc_test;
761
760
}