]> git.itanic.dy.fi Git - linux-stable/commit
usb: ehci: handshake CMD_RUN instead of STS_HALT
authorNeal Liu <neal_liu@aspeedtech.com>
Fri, 10 Sep 2021 07:36:19 +0000 (15:36 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 12 Nov 2021 13:43:02 +0000 (14:43 +0100)
commitd6013265a779d685a6e88b3f2af065e8855c2877
treec58f1a23878e9c1ee91ead4cc303ecb7af878978
parent6d000e1c16250f0dd60d88fa91e4b30aae193c98
usb: ehci: handshake CMD_RUN instead of STS_HALT

commit 7f2d73788d9067fd4f677ac5f60ffd25945af7af upstream.

For Aspeed, HCHalted status depends on not only Run/Stop but also
ASS/PSS status.
Handshake CMD_RUN on startup instead.

Tested-by: Tao Ren <rentao.bupt@gmail.com>
Reviewed-by: Tao Ren <rentao.bupt@gmail.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Neal Liu <neal_liu@aspeedtech.com>
Link: https://lore.kernel.org/r/20210910073619.26095-1-neal_liu@aspeedtech.com
Cc: Joel Stanley <joel@jms.id.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ehci-hcd.c
drivers/usb/host/ehci-platform.c
drivers/usb/host/ehci.h