diff options
author | Rafael J. Wysocki <rjw@sisk.pl> | 2009-06-14 21:25:02 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-07-02 16:31:59 -0700 |
commit | fe9238fb7cac760494e50c0a7d52a91cf4d865b7 (patch) | |
tree | c26b0925b993e0e3f5ac93ae350aabb7ec2bcd68 /sound | |
parent | c88667d608fd3491614b965c27a2d1b73a487872 (diff) |
PCI PM: Fix handling of devices without PM support by pci_target_state()
commit d2abdf62882d982c58e7a6b09ecdcfcc28075e2e upstream.
If a PCI device is not power-manageable either by the platform, or
with the help of the native PCI PM interface, pci_target_state() will
return either PCI_D3hot, or PCI_POWER_ERROR for it, depending on
whether or not the device is configured to wake up the system. Alas,
none of these return values is correct, because each of them causes
pci_prepare_to_sleep() to return error code, although it should
complete successfully in such a case.
Fix this problem by making pci_target_state() always return PCI_D0
for devices that cannot be power managed.
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'sound')
0 files changed, 0 insertions, 0 deletions