xhci: Return if xHCI doesn't support LPM
authorKai-Heng Feng <kai.heng.feng@canonical.com>
Wed, 24 Jun 2020 13:59:48 +0000 (16:59 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Jun 2020 14:03:41 +0000 (16:03 +0200)
commitf0c472a6da51f9fac15e80fe2fd9c83b68754cff
tree96aa17dac9c111ddd6c3bf46d68e2e5079ca1669
parenta24d5072e87457a14023ee1dd3fc8b1e76f899ef
xhci: Return if xHCI doesn't support LPM

Just return if xHCI is quirked to disable LPM. We can save some time
from reading registers and doing spinlocks.

Add stable tag as we want this patch together with the next one,
"Poll for U0 after disabling USB2 LPM" which fixes a suspend issue
for some USB2 LPM devices

Cc: stable@vger.kernel.org
Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Link: https://lore.kernel.org/r/20200624135949.22611-5-mathias.nyman@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci.c