]> git.baikalelectronics.ru Git - kernel.git/commit
usb: dwc3: gadget: Do link recovery for SS and SSP
authorThinh Nguyen <Thinh.Nguyen@synopsys.com>
Sat, 1 Feb 2020 00:25:50 +0000 (16:25 -0800)
committerFelipe Balbi <balbi@kernel.org>
Thu, 16 Apr 2020 08:02:30 +0000 (11:02 +0300)
commitb6413199f7614ab4726de3c70072ec9ac2cc9d6f
tree4cc09ed9f7047b2884a041bbf8d2e16735572687
parente1ef6280fd6deef43114314844588f9db90a6fe6
usb: dwc3: gadget: Do link recovery for SS and SSP

The controller always supports link recovery for device in SS and SSP.
Remove the speed limit check. Also, when the device is in RESUME or
RESET state, it means the controller received the resume/reset request.
The driver must send the link recovery to acknowledge the request. They
are valid states for the driver to send link recovery.

Fixes: 1e90ce98e30b ("usb: Introduce DesignWare USB3 DRD Driver")
Fixes: a77ca3c3fc63 ("usb: dwc3: Update speed checks for SuperSpeedPlus")
Signed-off-by: Thinh Nguyen <thinhn@synopsys.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
drivers/usb/dwc3/gadget.c