aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/pci-driver.c
diff options
context:
space:
mode:
authorRafael J. Wysocki <rjw@sisk.pl>2012-08-12 17:26:07 -0400
committerBjorn Helgaas <bhelgaas@google.com>2012-08-15 13:51:19 -0400
commit0b68c8e2c3afaf9807eb1ebe0ccfb3b809570aa4 (patch)
tree4a33e793e42a741fac5098c564399813d580cc17 /drivers/pci/pci-driver.c
parent3d0882c0d10d4b4785aeaf26043e764e3aaca825 (diff)
PCI: EHCI: Fix crash during hibernation on ASUS computers
Commit dbf0e4c (PCI: EHCI: fix crash during suspend on ASUS computers) added a workaround for an ASUS suspend issue related to USB EHCI and a bug in a number of ASUS BIOSes that attempt to shut down the EHCI controller during system suspend if its PCI command register doesn't contain 0 at that time. It turns out that the same workaround is necessary in the analogous hibernation code path, so add it. References: https://bugzilla.kernel.org/show_bug.cgi?id=45811 Reported-and-tested-by: Oleksij Rempel <bug-track@fisher-privat.net> Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Cc: stable@vger.kernel.org
Diffstat (limited to 'drivers/pci/pci-driver.c')
-rw-r--r--drivers/pci/pci-driver.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/pci/pci-driver.c b/drivers/pci/pci-driver.c
index 185be3703343..5270f1a99328 100644
--- a/drivers/pci/pci-driver.c
+++ b/drivers/pci/pci-driver.c
@@ -959,6 +959,13 @@ static int pci_pm_poweroff_noirq(struct device *dev)
959 if (!pci_dev->state_saved && !pci_is_bridge(pci_dev)) 959 if (!pci_dev->state_saved && !pci_is_bridge(pci_dev))
960 pci_prepare_to_sleep(pci_dev); 960 pci_prepare_to_sleep(pci_dev);
961 961
962 /*
963 * The reason for doing this here is the same as for the analogous code
964 * in pci_pm_suspend_noirq().
965 */
966 if (pci_dev->class == PCI_CLASS_SERIAL_USB_EHCI)
967 pci_write_config_word(pci_dev, PCI_COMMAND, 0);
968
962 return 0; 969 return 0;
963} 970}
964 971