Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 179074
b: refs/heads/master
c: 35bb5ca
h: refs/heads/master
v: v3
  • Loading branch information
Ben Hutchings authored and David S. Miller committed Jan 4, 2010
1 parent a902e47 commit 5ba9c88
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: b3319b10523d8dac82b134a05de2a403119abebd
refs/heads/master: 35bb5cadc8c7b1462df57e32e08d964f1be7a75c
8 changes: 4 additions & 4 deletions trunk/drivers/net/via-velocity.c
Original file line number Diff line number Diff line change
Expand Up @@ -2237,8 +2237,6 @@ static int velocity_open(struct net_device *dev)
/* Ensure chip is running */
pci_set_power_state(vptr->pdev, PCI_D0);

velocity_give_many_rx_descs(vptr);

velocity_init_registers(vptr, VELOCITY_INIT_COLD);

ret = request_irq(vptr->pdev->irq, velocity_intr, IRQF_SHARED,
Expand All @@ -2250,6 +2248,8 @@ static int velocity_open(struct net_device *dev)
goto out;
}

velocity_give_many_rx_descs(vptr);

mac_enable_int(vptr->mac_regs);
netif_start_queue(dev);
napi_enable(&vptr->napi);
Expand Down Expand Up @@ -2339,10 +2339,10 @@ static int velocity_change_mtu(struct net_device *dev, int new_mtu)

dev->mtu = new_mtu;

velocity_give_many_rx_descs(vptr);

velocity_init_registers(vptr, VELOCITY_INIT_COLD);

velocity_give_many_rx_descs(vptr);

mac_enable_int(vptr->mac_regs);
netif_start_queue(dev);

Expand Down

0 comments on commit 5ba9c88

Please sign in to comment.