summaryrefslogtreecommitdiff
path: root/init/.gitignore
diff options
context:
space:
mode:
authorThinh Nguyen <Thinh.Nguyen@synopsys.com>2022-12-09 03:50:35 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-01-06 18:32:10 +0300
commitc4e3ef5685393c5051b52cf1e94b8891d49793ab (patch)
tree43fc1e04b6a8802d4f46991079bc599872a260c6 /init/.gitignore
parente498a04443240c15c3c857165f7b652b87f4fd96 (diff)
downloadlinux-c4e3ef5685393c5051b52cf1e94b8891d49793ab.tar.xz
usb: dwc3: gadget: Ignore End Transfer delay on teardown
If we delay sending End Transfer for Setup TRB to be prepared, we need to check if the End Transfer was in preparation for a driver teardown/soft-disconnect. In those cases, just send the End Transfer command without delay. In the case of soft-disconnect, there's a very small chance the command may not go through immediately. But should it happen, the Setup TRB will be prepared during the polling of the controller halted state, allowing the command to go through then. In the case of disabling endpoint due to reconfiguration (e.g. set_interface(alt-setting) or usb reset), then it's driven by the host. Typically the host wouldn't immediately cancel the control request and send another control transfer to trigger the End Transfer command timeout. Fixes: 4db0fbb60136 ("usb: dwc3: gadget: Don't delay End Transfer on delayed_status") Cc: stable@vger.kernel.org Signed-off-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com> Link: https://lore.kernel.org/r/f1617a323e190b9cc408fb8b65456e32b5814113.1670546756.git.Thinh.Nguyen@synopsys.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'init/.gitignore')
0 files changed, 0 insertions, 0 deletions