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>
Tue, 14 Sep 2021 08:26:02 +0000 (10:26 +0200)
commit7f2d73788d9067fd4f677ac5f60ffd25945af7af
treec5c614718f030347ee6196a4158bdd659f925d19
parent18d6b39ee8959c6e513750879b52fd215533cc87
usb: ehci: handshake CMD_RUN instead of STS_HALT

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
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