]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
PCI PM: Fix pci_update_current_state
authorRafael J. Wysocki <rjw@sisk.pl>
Sat, 27 Dec 2008 15:30:52 +0000 (16:30 +0100)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Wed, 7 Jan 2009 19:13:08 +0000 (11:13 -0800)
commitf06fc0b6f8a6846e0ad48aee7b0f282b4fb5dcdc
treea723b05eedd9457ad50a0fb4220c73beac11f46a
parenteb9c39d031bbcfd4005bd7e0337c3fd3909c1bf7
PCI PM: Fix pci_update_current_state

Currently, PCI devices without the PM capability that are power
manageable by the platform (eg. ACPI) are not handled correctly
by pci_set_power_state(), because their current_state field is not
updated to reflect the new power state of the device.  Fix this by
making pci_update_current_state() accept additional argument
representing the power state of the device as set by the platform.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/pci.c