]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
USB: Verify the port status when timeout happens during port suspend
authorChris Chiu <chris.chiu@canonical.com>
Tue, 25 May 2021 05:47:00 +0000 (07:47 +0200)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Thu, 27 May 2021 13:30:42 +0000 (15:30 +0200)
commitc1ce20d6a967969edaf59d6bb4656b98f63cd601
tree6ef46189bf6e965f7b7054ea47313efc4d9a1986
parent636485cd27e618d574b1d3923242b8a2848503ab
USB: Verify the port status when timeout happens during port suspend

BugLink: https://bugs.launchpad.net/bugs/1928242
On the Realtek high-speed Hub(0bda:5487), the port which has wakeup
enabled_descendants will sometimes timeout when setting PORT_SUSPEND
feature. After checking the PORT_SUSPEND bit in wPortStatus, it is
already set which means the port has been suspended. We should treat
it suspended to make sure it will be resumed correctly.

Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Chris Chiu <chris.chiu@canonical.com>
Link: https://lore.kernel.org/r/20210514045405.5261-2-chris.chiu@canonical.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 7142452387c72207f34683382b04f38499da58f7 linux-next)
Signed-off-by: Chris Chiu <chris.chiu@canonical.com>
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Acked-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
drivers/usb/core/hub.c