Skip to content

Commit

Permalink
Revert "usb: gadget: udc: core: Prevent redundant calls to pullup"
Browse files Browse the repository at this point in the history
commit 5e16172 upstream.

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: stable@vger.kernel.org
Reported-by: Stephan Gerhold <stephan@gerhold.net>
Reported-by: Francesco Dolcini <francesco.dolcini@toradex.com>
Link: https://lore.kernel.org/all/ZF4BvgsOyoKxdPFF@francesco-nb.int.toradex.com/
Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
Link: https://lore.kernel.org/r/20230512131435.205464-2-francesco@dolcini.it
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
dolcini authored and gregkh committed May 24, 2023
1 parent 08bd1be commit 7356d42
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/usb/gadget/udc/core.c
Expand Up @@ -676,9 +676,6 @@ static int usb_gadget_connect_locked(struct usb_gadget *gadget)
goto out;
}

if (gadget->connected)
goto out;

if (gadget->deactivated || !gadget->udc->started) {
/*
* If gadget is deactivated we only save new state.
Expand Down

0 comments on commit 7356d42

Please sign in to comment.