diff options
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/b44.c | 3 | ||||
-rw-r--r-- | drivers/net/ne2k-pci.c | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/b44.c b/drivers/net/b44.c index f1bd45e3da31..94939f570f78 100644 --- a/drivers/net/b44.c +++ b/drivers/net/b44.c | |||
@@ -1930,6 +1930,7 @@ static int b44_suspend(struct pci_dev *pdev, pm_message_t state) | |||
1930 | b44_free_rings(bp); | 1930 | b44_free_rings(bp); |
1931 | 1931 | ||
1932 | spin_unlock_irq(&bp->lock); | 1932 | spin_unlock_irq(&bp->lock); |
1933 | pci_disable_device(pdev); | ||
1933 | return 0; | 1934 | return 0; |
1934 | } | 1935 | } |
1935 | 1936 | ||
@@ -1939,6 +1940,8 @@ static int b44_resume(struct pci_dev *pdev) | |||
1939 | struct b44 *bp = netdev_priv(dev); | 1940 | struct b44 *bp = netdev_priv(dev); |
1940 | 1941 | ||
1941 | pci_restore_state(pdev); | 1942 | pci_restore_state(pdev); |
1943 | pci_enable_device(pdev); | ||
1944 | pci_set_master(pdev); | ||
1942 | 1945 | ||
1943 | if (!netif_running(dev)) | 1946 | if (!netif_running(dev)) |
1944 | return 0; | 1947 | return 0; |
diff --git a/drivers/net/ne2k-pci.c b/drivers/net/ne2k-pci.c index a1a6c08e7dcf..f1c01ac29102 100644 --- a/drivers/net/ne2k-pci.c +++ b/drivers/net/ne2k-pci.c | |||
@@ -660,6 +660,7 @@ static int ne2k_pci_suspend (struct pci_dev *pdev, pm_message_t state) | |||
660 | 660 | ||
661 | netif_device_detach(dev); | 661 | netif_device_detach(dev); |
662 | pci_save_state(pdev); | 662 | pci_save_state(pdev); |
663 | pci_disable_device(pdev); | ||
663 | pci_set_power_state(pdev, pci_choose_state(pdev, state)); | 664 | pci_set_power_state(pdev, pci_choose_state(pdev, state)); |
664 | 665 | ||
665 | return 0; | 666 | return 0; |
@@ -671,6 +672,8 @@ static int ne2k_pci_resume (struct pci_dev *pdev) | |||
671 | 672 | ||
672 | pci_set_power_state(pdev, 0); | 673 | pci_set_power_state(pdev, 0); |
673 | pci_restore_state(pdev); | 674 | pci_restore_state(pdev); |
675 | pci_enable_device(pdev); | ||
676 | pci_set_master(pdev); | ||
674 | NS8390_init(dev, 1); | 677 | NS8390_init(dev, 1); |
675 | netif_device_attach(dev); | 678 | netif_device_attach(dev); |
676 | 679 | ||