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

UPSTREAM: usb: dwc3: gadget: Avoid duplicate requests to enable Run/Stop



Relocate the pullups_connected check until after it is ensured that there
are no runtime PM transitions.  If another context triggered the DWC3
core's runtime resume, it may have already enabled the Run/Stop.  Do not
re-run the entire pullup sequence again, as it may issue a core soft
reset while Run/Stop is already set.

This patch depends on
  commit 69e131d1 ("usb: dwc3: gadget: Prevent repeat pullup()")

Fixes: 77adb8bd ("usb: dwc3: gadget: Allow runtime suspend if UDC unbinded")
Cc: stable <stable@kernel.org>
Signed-off-by: default avatarWesley Cheng <quic_wcheng@quicinc.com>
Link: https://lore.kernel.org/r/20220728020647.9377-1-quic_wcheng@quicinc.com


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

Bug: 245440430
Bug: 254816414

(cherry picked from commit 040f2dbd)
Signed-off-by: default avatarPrashanth K <quic_prashk@quicinc.com>

Change-Id: I8b819b4773420fbca3bd7a284d715401dcdd00c3
Signed-off-by: default avatarzuoyonghua <zuoyonghua@oppo.com>
parent 5523a290
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment