diff options
author | Wesley Cheng <[email protected]> | 2022-07-27 19:06:47 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2022-08-18 21:10:44 +0200 |
commit | 040f2dbd2010c43f33ad27249e6dac48456f4d99 (patch) | |
tree | 8f4af458012cd5a88f855bb334ecf500d3e15b25 /include/linux/fpga/fpga-bridge.h | |
parent | bad0d1d726ace2db9e0f39c62b173bc7cc43dd6a (diff) |
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 69e131d1ac4e ("usb: dwc3: gadget: Prevent repeat pullup()")
Fixes: 77adb8bdf422 ("usb: dwc3: gadget: Allow runtime suspend if UDC unbinded")
Cc: stable <[email protected]>
Signed-off-by: Wesley Cheng <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'include/linux/fpga/fpga-bridge.h')
0 files changed, 0 insertions, 0 deletions