Commit 068ff4a2 authored by Andrew Morton's avatar Andrew Morton Committed by Jeff Garzik

[netdrvr 8139too] Don't hold the lock across pci_set_power_state() - it can sleep

parent 4a493b70
......@@ -2475,10 +2475,11 @@ static int rtl8139_suspend (struct pci_dev *pdev, u32 state)
tp->stats.rx_missed_errors += RTL_R32 (RxMissed);
RTL_W32 (RxMissed, 0);
spin_unlock_irqrestore (&tp->lock, flags);
pci_set_power_state (pdev, 3);
pci_save_state (pdev, tp->pci_state);
spin_unlock_irqrestore (&tp->lock, flags);
return 0;
}
......
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