]> git.baikalelectronics.ru Git - kernel.git/commit
xhci: Increase STS_SAVE timeout in xhci_suspend()
authorKai-Heng Feng <kai.heng.feng@canonical.com>
Fri, 4 Oct 2019 11:59:32 +0000 (14:59 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Oct 2019 12:32:11 +0000 (14:32 +0200)
commit5cdc28be46719aae0f8646ccc97541ca6db3d5ad
tree343b7f1b8c90fc5196ae4733b7cf3bb0d06a1f04
parent64ee2683cebf1cae38a1525fb226a0deacffc5b1
xhci: Increase STS_SAVE timeout in xhci_suspend()

After commit 64f6804d9ad0 ("xhci: Convert xhci_handshake() to use
readl_poll_timeout_atomic()"), ASMedia xHCI may fail to suspend.

Although the algorithms are essentially the same, the old max timeout is
(usec + usec * time of doing readl()), and the new max timeout is just
usec, which is much less than the old one.

Increase the timeout to make ASMedia xHCI able to suspend again.

BugLink: https://bugs.launchpad.net/bugs/1844021
Fixes: 64f6804d9ad0 ("xhci: Convert xhci_handshake() to use readl_poll_timeout_atomic()")
Cc: <stable@vger.kernel.org> # v5.2+
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/1570190373-30684-8-git-send-email-mathias.nyman@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci.c