]> git.karo-electronics.de Git - karo-tx-linux.git/commit
PCI: Ensure we re-enable devices on resume
authorMatthew Garrett <mjg@redhat.com>
Thu, 22 Apr 2010 13:30:51 +0000 (09:30 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 12 May 2010 22:02:48 +0000 (15:02 -0700)
commit9ffd6e94b8029e8d6f64a6172461bc65df87a8b5
tree02b4f7db7dc92bf4b5ed375ad0e002ee8fe34190
parent0677628d0fa93ed4325223f0826b759809967b51
PCI: Ensure we re-enable devices on resume

commit cc2893b6af5265baa1d68b17b136cffca9e40cfa upstream.

If the firmware puts a device back into D0 state at resume time, we'll
update its state in resume_noirq and thus skip the platform resume code.
Calling that code twice should be safe and we ought to avoid getting to
that point anyway, so remove the check and also allow the platform pci
code to be called for D0.

Fixes USB not being powered after resume on recent Lenovo machines.

Acked-by: Alex Chiang <achiang@canonical.com>
Acked-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/pci/pci.c