Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 131190
b: refs/heads/master
c: 71822fa
h: refs/heads/master
v: v3
  • Loading branch information
Ilkka Virta authored and David S. Miller committed Feb 7, 2009
1 parent 6ad97fb commit 641abc1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 15bde72738f373aa060ececeda8e064e4f924360
refs/heads/master: 71822faa3bc0af5dbf5e333a2d085f1ed7cd809f
8 changes: 4 additions & 4 deletions trunk/drivers/net/sungem.c
Original file line number Diff line number Diff line change
Expand Up @@ -2221,6 +2221,8 @@ static int gem_do_start(struct net_device *dev)

gp->running = 1;

napi_enable(&gp->napi);

if (gp->lstate == link_up) {
netif_carrier_on(gp->dev);
gem_set_link_modes(gp);
Expand All @@ -2238,6 +2240,8 @@ static int gem_do_start(struct net_device *dev)
spin_lock_irqsave(&gp->lock, flags);
spin_lock(&gp->tx_lock);

napi_disable(&gp->napi);

gp->running = 0;
gem_reset(gp);
gem_clean_rings(gp);
Expand Down Expand Up @@ -2338,8 +2342,6 @@ static int gem_open(struct net_device *dev)
if (!gp->asleep)
rc = gem_do_start(dev);
gp->opened = (rc == 0);
if (gp->opened)
napi_enable(&gp->napi);

mutex_unlock(&gp->pm_mutex);

Expand Down Expand Up @@ -2476,8 +2478,6 @@ static int gem_resume(struct pci_dev *pdev)

/* Re-attach net device */
netif_device_attach(dev);

napi_enable(&gp->napi);
}

spin_lock_irqsave(&gp->lock, flags);
Expand Down

0 comments on commit 641abc1

Please sign in to comment.