PCI PM: Read power state from device after trying to change it on resume
PATCH 1/1 PCI PM: Read power state from device after trying to change it on resume
From: Rafael J. Wysocki <[email protected]>
pci_restore_standard_config() unconditionally changes current_state to PCI_D0 after attempting to change the device's power state, but it should rather read the actual current power state from the device.
--- drivers/pci/pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pci/pci.c +1 -1
@@ -1418,7 +1418,7 @@ int pci_restore_standard_config(struct pbreak ; } - dev->current_state =PCI_D0 ; +pci_update_current_state (dev,PCI_D0 ); Restore:return pci_restore_state (dev);
Quoted 8 lines · Rafael J. Wysocki
From: Rafael J. Wysocki <[email protected]>
pci_restore_standard_config()unconditionally changescurrent_statetoPCI_D0after attempting to change the device's power state, but it should rather read the actual current power state from the device.Signed-off-by Rafael J. Wysocki <[email protected]>
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
Quoted 8 lines · Rafael J. Wysocki
From: Rafael J. Wysocki <[email protected]>
pci_restore_standard_config()unconditionally changescurrent_statetoPCI_D0after attempting to change the device's power state, but it should rather read the actual current power state from the device.Signed-off-by Rafael J. Wysocki <[email protected]>
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html