mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-25 22:27:45 +02:00
ar71xx: ag71xx: move calling ag71xx_phy_stop out from spinlock
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20004 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
5b74d557fa
commit
0955ccfcf3
@ -580,15 +580,15 @@ static int ag71xx_stop(struct net_device *dev)
|
|||||||
struct ag71xx *ag = netdev_priv(dev);
|
struct ag71xx *ag = netdev_priv(dev);
|
||||||
unsigned long flags;
|
unsigned long flags;
|
||||||
|
|
||||||
|
netif_carrier_off(dev);
|
||||||
|
ag71xx_phy_stop(ag);
|
||||||
|
|
||||||
spin_lock_irqsave(&ag->lock, flags);
|
spin_lock_irqsave(&ag->lock, flags);
|
||||||
|
|
||||||
netif_stop_queue(dev);
|
netif_stop_queue(dev);
|
||||||
|
|
||||||
ag71xx_hw_stop(ag);
|
ag71xx_hw_stop(ag);
|
||||||
|
|
||||||
netif_carrier_off(dev);
|
|
||||||
ag71xx_phy_stop(ag);
|
|
||||||
|
|
||||||
napi_disable(&ag->napi);
|
napi_disable(&ag->napi);
|
||||||
del_timer_sync(&ag->oom_timer);
|
del_timer_sync(&ag->oom_timer);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user