xhci: Check for XHCI_COMP_MODE_QUIRK when disabling D3cold
authorAndrew Bresticker <abrestic@chromium.org>
Fri, 3 Oct 2014 08:35:27 +0000 (11:35 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Oct 2014 21:44:45 +0000 (14:44 -0700)
commite1cd972741f537828307640c9e55f7b595e9ba1e
tree1f5b7b9fe40280ef113228596e55ed48ba0d5677
parent1885d9a33753b73cbbe3f8efde4a852ecca08674
xhci: Check for XHCI_COMP_MODE_QUIRK when disabling D3cold

Instead of calling xhci_compliance_mode_recovery_timer_quirk_check() again
in the PCI suspend path, just check for XHCI_COMP_MODE_QUIRK which will
have been set based on xhci_compliance_mode_recovery_timer_quirk_check()
in xhci_init().

Signed-off-by: Andrew Bresticker <abrestic@chromium.org>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-pci.c
drivers/usb/host/xhci.c
drivers/usb/host/xhci.h