Commit 4174b536 authored by Wesley Cheng's avatar Wesley Cheng Committed by Matthias Männich
Browse files

UPSTREAM: usb: dwc3: gadget: Skip waiting for CMDACT cleared during endxfer



For endxfer commands that do not require an endpoint complete interrupt,
avoid having to wait for the command active bit to clear.  This allows for
EP0 events to continue to be handled, which allows for the controller to
complete it.  Otherwise, it is known that the endxfer command will fail if
there is a pending SETUP token that needs to be read.

Suggested-by: default avatarThinh Nguyen <Thinh.Nguyen@synopsys.com>
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-5-quic_wcheng@quicinc.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>

(cherry picked from commit b353eb6d)

Bug: 263189538
Bug: 293380009
Change-Id: If34b7ddc2e3ea10ec94afe43e6dba0878da6776f
Signed-off-by: default avatarKrishna Kurapati <quic_kriskura@quicinc.com>
Signed-off-by: default avatarlianqin.hu <hulianqin@vivo.corp-partner.google.com>
Signed-off-by: default avatarLianqin Hu <hulianqin@vivo.com>
parent f0ed731a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment