]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit159475c15fb8edf18ae2f2e81f7d7cc6b0a66e8b
tree9f56f777604d4ccc5395f93972e7a0d0618ba249
parentfc056c1fba3615b26305db27c8617929f8ae8e47
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