PCI: Ensure we re-enable devices on resume
authorMatthew Garrett <mjg@redhat.com>
Thu, 22 Apr 2010 13:30:51 +0000 (09:30 -0400)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Thu, 22 Apr 2010 23:13:47 +0000 (16:13 -0700)
commitcc2893b6af5265baa1d68b17b136cffca9e40cfa
tree4de82276df0cbcf13b4fe50c267b91c2381723c2
parent66528fdd45b082bf7c74687d72ae08afa4a446f8
PCI: Ensure we re-enable devices on resume

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>
drivers/pci/pci.c