Revert "FROMLIST: usb: dwc3: gadget: Avoid duplicate requests to enable Run/Stop"

This reverts commit 19c3abde53.

Bug: 240122498
Change-Id: I3a37bfb485526086f9a06ba8b9efcbe445a6ebaf
Signed-off-by: Wesley Cheng <quic_wcheng@quicinc.com>
This commit is contained in:
Wesley Cheng
2022-08-12 11:18:46 -07:00
committed by Todd Kjos
parent 2487db8d59
commit d4d10fb574

View File

@@ -2465,6 +2465,9 @@ static int dwc3_gadget_pullup(struct usb_gadget *g, int is_on)
is_on = !!is_on;
if (dwc->pullups_connected == is_on)
return 0;
dwc->softconnect = is_on;
/*
@@ -2502,9 +2505,6 @@ static int dwc3_gadget_pullup(struct usb_gadget *g, int is_on)
return 0;
}
if (dwc->pullups_connected == is_on)
return 0;
/*
* Synchronize and disable any further event handling while controller
* is being enabled/disabled.