usb: xhci: set SSIC port unused only if xhci_suspend succeeds
authorLu Baolu <baolu.lu@linux.intel.com>
Tue, 26 Jan 2016 15:50:07 +0000 (17:50 +0200)
committerSasha Levin <sasha.levin@oracle.com>
Mon, 15 Feb 2016 20:45:34 +0000 (15:45 -0500)
commitc6fd1e6a4ffcfaf6fd6409e8fc3ada2e0cbd247d
treecf861481456ed17e0c57d1fcfb879e1e1efb7d29
parent1f8ad5557c9910b9853830ef202d092aa43806c9
usb: xhci: set SSIC port unused only if xhci_suspend succeeds

[ Upstream commit 92149c930cce1865d0d4aca2ab07c2b4b197b418 ]

XHCI_SSIC_PORT_UNUSED quirk was applied to the xHCI host controllers
in some Intel SoC chips.  With this quirk applied, SSIC port is set
to "unused" prior to xhci_suspend(). This may cause problem if host
fails to suspend.  In this case, the port is set to unused without
host further entering D3, and the port will not be usable anymore.

Cc: stable@vger.kernel.org
Signed-off-by: Zhuang Jin Can <jin.can.zhuang@intel.com>
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
drivers/usb/host/xhci-pci.c