Skip to content

Commit 5e16172

Browse files
dolcinigregkh
authored andcommitted
Revert "usb: gadget: udc: core: Prevent redundant calls to pullup"
This reverts commit a3afbf5. This depends on commit 0db213e ("usb: gadget: udc: core: Invoke usb_gadget_connect only when started") that introduces a regression, revert it till the issue is fixed. Cc: [email protected] Reported-by: Stephan Gerhold <[email protected]> Reported-by: Francesco Dolcini <[email protected]> Link: https://lore.kernel.org/all/[email protected]/ Signed-off-by: Francesco Dolcini <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 8432a15 commit 5e16172

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

drivers/usb/gadget/udc/core.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -703,9 +703,6 @@ static int usb_gadget_connect_locked(struct usb_gadget *gadget)
703703
goto out;
704704
}
705705

706-
if (gadget->connected)
707-
goto out;
708-
709706
if (gadget->deactivated || !gadget->udc->started) {
710707
/*
711708
* If gadget is deactivated we only save new state.

0 commit comments

Comments
 (0)