Commit bba55a26 authored by Stefan Rompf's avatar Stefan Rompf Committed by Jeff Garzik

[netdrvr b44] always restore PCI config on resume

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.
parent 4feb216c
...@@ -1882,11 +1882,11 @@ static int b44_resume(struct pci_dev *pdev) ...@@ -1882,11 +1882,11 @@ static int b44_resume(struct pci_dev *pdev)
struct net_device *dev = pci_get_drvdata(pdev); struct net_device *dev = pci_get_drvdata(pdev);
struct b44 *bp = dev->priv; struct b44 *bp = dev->priv;
pci_restore_state(pdev, bp->pci_cfg_state);
if (!netif_running(dev)) if (!netif_running(dev))
return 0; return 0;
pci_restore_state(pdev, bp->pci_cfg_state);
spin_lock_irq(&bp->lock); spin_lock_irq(&bp->lock);
b44_init_rings(bp); b44_init_rings(bp);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment