aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/fs_enet/fs_enet-main.c
diff options
context:
space:
mode:
authorVitaly Bordug <vitb@kernel.crashing.org>2007-09-18 12:05:27 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-10 19:51:54 -0400
commitaa90f5032129b43569896c1c6c15a706c02c6abf (patch)
tree88c48fbe941472e3a72de64c2db6a10b04af4661 /drivers/net/fs_enet/fs_enet-main.c
parent1a9e8549efda23a08451d0ac582713dfd04f0951 (diff)
FS_ENET: TX stuff should use fep->tx_lock, instead of fep->lock.
Signed-off-by: Vitaly Bordug <vitb@kernel.crashing.org> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/fs_enet/fs_enet-main.c')
-rw-r--r--drivers/net/fs_enet/fs_enet-main.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/fs_enet/fs_enet-main.c b/drivers/net/fs_enet/fs_enet-main.c
index f9079599dd22..83c9bf27ecfd 100644
--- a/drivers/net/fs_enet/fs_enet-main.c
+++ b/drivers/net/fs_enet/fs_enet-main.c
@@ -335,7 +335,7 @@ static void fs_enet_tx(struct net_device *dev)
335 int dirtyidx, do_wake, do_restart; 335 int dirtyidx, do_wake, do_restart;
336 u16 sc; 336 u16 sc;
337 337
338 spin_lock(&fep->lock); 338 spin_lock(&fep->tx_lock);
339 bdp = fep->dirty_tx; 339 bdp = fep->dirty_tx;
340 340
341 do_wake = do_restart = 0; 341 do_wake = do_restart = 0;
@@ -415,7 +415,7 @@ static void fs_enet_tx(struct net_device *dev)
415 if (do_restart) 415 if (do_restart)
416 (*fep->ops->tx_restart)(dev); 416 (*fep->ops->tx_restart)(dev);
417 417
418 spin_unlock(&fep->lock); 418 spin_unlock(&fep->tx_lock);
419 419
420 if (do_wake) 420 if (do_wake)
421 netif_wake_queue(dev); 421 netif_wake_queue(dev);
@@ -818,7 +818,9 @@ static int fs_enet_close(struct net_device *dev)
818 phy_stop(fep->phydev); 818 phy_stop(fep->phydev);
819 819
820 spin_lock_irqsave(&fep->lock, flags); 820 spin_lock_irqsave(&fep->lock, flags);
821 spin_lock(&fep->tx_lock);
821 (*fep->ops->stop)(dev); 822 (*fep->ops->stop)(dev);
823 spin_unlock(&fep->tx_lock);
822 spin_unlock_irqrestore(&fep->lock, flags); 824 spin_unlock_irqrestore(&fep->lock, flags);
823 825
824 /* release any irqs */ 826 /* release any irqs */