Re: [PATCH] usb: dwc3: gadget: Avoid duplicate requests to enable Run/Stop

From: Wesley Cheng
Date: Tue Jul 26 2022 - 15:41:22 EST


Hi Greg,

On 7/26/2022 8:43 AM, Greg KH wrote:
On Mon, Jul 25, 2022 at 01:11:36PM -0700, Wesley Cheng wrote:
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.

Signed-off-by: Wesley Cheng <quic_wcheng@xxxxxxxxxxx>

What commit does this fix?

How far back should it go to stable kernels?

Let met add a fixes tag and resubmit. Thanks!

Thanks
Wesley Cheng