PCI PM: Fix handling of devices without drivers
authorRafael J. Wysocki <rjw@sisk.pl>
Wed, 4 Feb 2009 00:56:14 +0000 (01:56 +0100)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Thu, 5 Feb 2009 01:20:09 +0000 (17:20 -0800)
commitddb7c9d29fac34626aef2af9f19787a888e4ca9c
tree9f56f777604d4ccc5395f93972e7a0d0618ba249
parent97c44836cdec1ea713a15d84098a1a908157e68f
PCI PM: Fix handling of devices without drivers

Suspend to RAM is reported to break on some machines as a result of
attempting to put one of driverless PCI devices into a low power
state.  Avoid that by not attepmting to power manage driverless
devices during suspend.

Fix up pci_pm_poweroff() after a previous incomplete fix for the same
thing during hibernation.

This patch is reported to fix the regression from 2.6.28 tracked as
http://bugzilla.kernel.org/show_bug.cgi?id=12605

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Reported-and-tested-by: Eric Sesterhenn <snakebyte@gmx.de>
Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/pci-driver.c