diff options
author | Thinh Nguyen <Thinh.Nguyen@synopsys.com> | 2020-09-03 04:43:04 +0300 |
---|---|---|
committer | Felipe Balbi <balbi@kernel.org> | 2020-09-24 11:56:01 +0300 |
commit | d97c78a1908e59a1fdbcbece87cd0440b5d7a1f2 (patch) | |
tree | b40473c2b1da41d86769218a671d5487cd92d41f /drivers/usb/early | |
parent | c503672abe1348f10f5a54a662336358c6e1a297 (diff) | |
download | linux-d97c78a1908e59a1fdbcbece87cd0440b5d7a1f2.tar.xz |
usb: dwc3: gadget: END_TRANSFER before CLEAR_STALL command
According the programming guide (for all DWC3 IPs), when the driver
handles ClearFeature(halt) request, it should issue CLEAR_STALL command
_after_ the END_TRANSFER command completes. The END_TRANSFER command may
take some time to complete. So, delay the ClearFeature(halt) request
control status stage and wait for END_TRANSFER command completion
interrupt. Only after END_TRANSFER command completes that the driver
may issue CLEAR_STALL command.
Cc: stable@vger.kernel.org
Fixes: cb11ea56f37a ("usb: dwc3: gadget: Properly handle ClearFeature(halt)")
Signed-off-by: Thinh Nguyen <thinhn@synopsys.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
Diffstat (limited to 'drivers/usb/early')
0 files changed, 0 insertions, 0 deletions