Commit 0bbc89c3 authored by Wesley Cheng's avatar Wesley Cheng Committed by Todd Kjos
Browse files

UPSTREAM: usb: dwc3: gadget: Synchronize IRQ between soft connect/disconnect



Ensure that there are no pending events being handled in between soft
connect/disconnect transitions.  As we are keeping interrupts enabled,
and EP0 events are still being serviced, this avoids any stale events from
being serviced.

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/20220817182359.13550-4-quic_wcheng@quicinc.com


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

(cherry picked from commit 9711c67d)

Bug: 263189538
Change-Id: I8ec1e0ec2fe2d48f5db26e833fb9456936380e28
Signed-off-by: default avatarKrishna Kurapati <quic_kriskura@quicinc.com>
parent 35cb147c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment