From: Gabor Juhos Date: Fri, 5 Mar 2010 20:29:22 +0000 (+0000) Subject: ar71xx: ag71xx: move calling ag71xx_phy_stop out from spinlock X-Git-Tag: reboot~20811 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=2702ae4e8fa7b132ec80823b77a695726cf11bab;p=openwrt%2Fstaging%2Flynxis.git ar71xx: ag71xx: move calling ag71xx_phy_stop out from spinlock SVN-Revision: 20004 --- diff --git a/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_main.c b/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_main.c index 3644b2dd91..06a1f67d88 100644 --- a/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_main.c +++ b/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_main.c @@ -580,15 +580,15 @@ static int ag71xx_stop(struct net_device *dev) struct ag71xx *ag = netdev_priv(dev); unsigned long flags; + netif_carrier_off(dev); + ag71xx_phy_stop(ag); + spin_lock_irqsave(&ag->lock, flags); netif_stop_queue(dev); ag71xx_hw_stop(ag); - netif_carrier_off(dev); - ag71xx_phy_stop(ag); - napi_disable(&ag->napi); del_timer_sync(&ag->oom_timer);