diff options
Diffstat (limited to 'drivers/net/sky2.c')
-rw-r--r-- | drivers/net/sky2.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/sky2.c b/drivers/net/sky2.c index 8ae8520baaf3..f8f50f70bcd2 100644 --- a/drivers/net/sky2.c +++ b/drivers/net/sky2.c | |||
@@ -1844,7 +1844,8 @@ static void sky2_tx_complete(struct sky2_port *sky2, u16 done) | |||
1844 | sky2->tx_cons = idx; | 1844 | sky2->tx_cons = idx; |
1845 | smp_mb(); | 1845 | smp_mb(); |
1846 | 1846 | ||
1847 | if (tx_avail(sky2) > MAX_SKB_TX_LE + 4) | 1847 | /* Wake unless it's detached, and called e.g. from sky2_down() */ |
1848 | if (tx_avail(sky2) > MAX_SKB_TX_LE + 4 && netif_device_present(dev)) | ||
1848 | netif_wake_queue(dev); | 1849 | netif_wake_queue(dev); |
1849 | } | 1850 | } |
1850 | 1851 | ||
@@ -4688,6 +4689,7 @@ static int __devinit sky2_probe(struct pci_dev *pdev, | |||
4688 | INIT_WORK(&hw->restart_work, sky2_restart); | 4689 | INIT_WORK(&hw->restart_work, sky2_restart); |
4689 | 4690 | ||
4690 | pci_set_drvdata(pdev, hw); | 4691 | pci_set_drvdata(pdev, hw); |
4692 | pdev->d3_delay = 150; | ||
4691 | 4693 | ||
4692 | return 0; | 4694 | return 0; |
4693 | 4695 | ||