OSDN Git Service

usb: xhci: wait for CNR controller not ready bit in xhci resume
authorRick Tseng <rtseng@nvidia.com>
Fri, 4 Oct 2019 11:59:30 +0000 (14:59 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Oct 2019 20:40:59 +0000 (13:40 -0700)
commit384f906e724c7ced8c53143c4a5300b3b4c249d9
treef2001b8789b59a3427349b3fd12cda8fc1a4bcc7
parent0cd0bbdad9a4dff6d91d341cfe267afe4dae2f9c
usb: xhci: wait for CNR controller not ready bit in xhci resume

commit a70bcbc322837eda1ab5994d12db941dc9733a7d upstream.

NVIDIA 3.1 xHCI card would lose power when moving power state into D3Cold.
Thus we need to wait for CNR bit to clear in xhci resume, just as in
xhci init.

[Minor changes to comment and commit message -Mathias]
Cc: <stable@vger.kernel.org>
Signed-off-by: Rick Tseng <rtseng@nvidia.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Link: https://lore.kernel.org/r/1570190373-30684-6-git-send-email-mathias.nyman@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci.c