]> git.baikalelectronics.ru Git - kernel.git/commit
usb: dwc3: Issue core soft reset before enabling run/stop
authorWesley Cheng <quic_wcheng@quicinc.com>
Wed, 16 Mar 2022 01:13:58 +0000 (18:13 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Mar 2022 11:58:46 +0000 (12:58 +0100)
commit2561303d1a2b6b7ff252bd01f22aae20f9027f0f
treee5adba36d25b6f4c7726a1a3a65422aa97a15381
parent45737278d1b6f2ee1d4e79f39deb2d0553c066cc
usb: dwc3: Issue core soft reset before enabling run/stop

It is recommended by the Synopsis databook to issue a DCTL.CSftReset
when reconnecting from a device-initiated disconnect routine.  This
resolves issues with enumeration during fast composition switching
cases, which result in an unknown device on the host.

Reviewed-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
Signed-off-by: Wesley Cheng <quic_wcheng@quicinc.com>
Link: https://lore.kernel.org/r/20220316011358.3057-1-quic_wcheng@quicinc.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc3/core.c
drivers/usb/dwc3/core.h
drivers/usb/dwc3/gadget.c