Skip to contentSkip to conversation

Patch: b44.c: Always restore pci config on resume

PATCH Stefan Rompf 1 participant 1 message May 26, 2004

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi,

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. Patch against 2.6.7rc1 attached, please apply.

Stefan

drivers/net/b44.c +2 -2
@@ -1882,11 +1882,11 @@ static int b44_resume(struct pci_dev *pd
 	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);