* [PATCH] PCI PM: Read power state from device after trying to change it on resume
@ 2009-02-03 0:41 Rafael J. Wysocki
2009-02-07 9:19 ` [linux-pm] " Pavel Machek
0 siblings, 1 reply; 2+ messages in thread
From: Rafael J. Wysocki @ 2009-02-03 0:41 UTC (permalink / raw)
To: Jesse Barnes; +Cc: Linus Torvalds, Linux PCI, pm list, LKML
From: Rafael J. Wysocki <rjw@sisk.pl>
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.
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
---
drivers/pci/pci.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: linux-2.6/drivers/pci/pci.c
===================================================================
--- linux-2.6.orig/drivers/pci/pci.c
+++ linux-2.6/drivers/pci/pci.c
@@ -1418,7 +1418,7 @@ int pci_restore_standard_config(struct p
break;
}
- dev->current_state = PCI_D0;
+ pci_update_current_state(dev, PCI_D0);
Restore:
return pci_restore_state(dev);
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-02-07 9:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-03 0:41 [PATCH] PCI PM: Read power state from device after trying to change it on resume Rafael J. Wysocki
2009-02-07 9:19 ` [linux-pm] " Pavel Machek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®