]> git.baikalelectronics.ru Git - kernel.git/commit
PCI PM: Read power state from device after trying to change it on resume
authorRafael J. Wysocki <rjw@sisk.pl>
Wed, 4 Feb 2009 01:02:15 +0000 (02:02 +0100)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Thu, 5 Feb 2009 01:22:28 +0000 (17:22 -0800)
commit95bdbfcf0380814f4ccb7c3802dc6c14edee73d2
tree45102dd69858263623dae0db56f67a09a7b15c5c
parent68b59a6e47c18116bfdb60b49e2832e63321e317
PCI PM: Read power state from device after trying to change it on resume

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>
Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/pci.c