]> git.hungrycats.org Git - linux/commitdiff
[netdrvr b44] always restore PCI config on resume
authorStefan Rompf <srompf@isg.de>
Thu, 27 May 2004 09:51:22 +0000 (05:51 -0400)
committerJeff Garzik <jgarzik@redhat.com>
Thu, 27 May 2004 09:51:22 +0000 (05:51 -0400)
the Broadcom BCM4401 driver restores pci configuration on resume only when the
device is up. On my notebook, this leads to a failure when the device is down
during the S3 cycle. Short solution for now: Always restore pci config.

drivers/net/b44.c

index 0fad1b71d489c200e56850daea3b9da8180c52bf..d7f2142f8d6a2d6d00c8acf12d9e5e95691a3601 100644 (file)
@@ -1882,11 +1882,11 @@ static int b44_resume(struct pci_dev *pdev)
        struct net_device *dev = pci_get_drvdata(pdev);
        struct b44 *bp = dev->priv;
 
+       pci_restore_state(pdev, bp->pci_cfg_state);
+
        if (!netif_running(dev))
                return 0;
 
-       pci_restore_state(pdev, bp->pci_cfg_state);
-
        spin_lock_irq(&bp->lock);
 
        b44_init_rings(bp);