Commit d14231cb authored by Wesley Cheng's avatar Wesley Cheng Committed by Ray Chi
Browse files

BACKPORT: usb: dwc3: Avoid unmapping USB requests if endxfer is not complete



If DWC3_EP_DELAYED_STOP is set during stop active transfers, then do not
continue attempting to unmap request buffers during dwc3_remove_requests().
This can lead to SMMU faults, as the controller has not stopped the
processing of the TRB.  Defer this sequence to the EP0 out start, which
ensures that there are no pending SETUP transactions before issuing the
endxfer.

Bug: 276227797
Reviewed-by: default avatarThinh Nguyen <Thinh.Nguyen@synopsys.com>
Signed-off-by: default avatarWesley Cheng <quic_wcheng@quicinc.com>
Link: https://lore.kernel.org/r/20220901193625.8727-2-quic_wcheng@quicinc.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 2b2da657)

Bug: 279882628
Change-Id: Ia5a92c41136ce8fbdb2666527cb1b73e2941e3e1
Signed-off-by: default avatarRay Chi <raychi@google.com>
(cherry picked from 1c7619e6)
parent 837d1c47
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment