This is a note to let you know that I've just added the patch titled Revert "usb: gadget: udc: core: Prevent redundant calls to pullup" to the 6.1-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: revert-usb-gadget-udc-core-prevent-redundant-calls-to-pullup.patch and it can be found in the queue-6.1 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From 5e1617210aede9f1b91bb9819c93097b6da481f9 Mon Sep 17 00:00:00 2001 From: Francesco Dolcini <francesco.dolcini@xxxxxxxxxxx> Date: Fri, 12 May 2023 15:14:34 +0200 Subject: Revert "usb: gadget: udc: core: Prevent redundant calls to pullup" From: Francesco Dolcini <francesco.dolcini@xxxxxxxxxxx> commit 5e1617210aede9f1b91bb9819c93097b6da481f9 upstream. This reverts commit a3afbf5cc887fc3401f012fe629810998ed61859. This depends on commit 0db213ea8eed ("usb: gadget: udc: core: Invoke usb_gadget_connect only when started") that introduces a regression, revert it till the issue is fixed. Cc: stable@xxxxxxxxxxxxxxx Reported-by: Stephan Gerhold <stephan@xxxxxxxxxxx> Reported-by: Francesco Dolcini <francesco.dolcini@xxxxxxxxxxx> Link: https://lore.kernel.org/all/ZF4BvgsOyoKxdPFF@xxxxxxxxxxxxxxxxxxxxxxxxxxxx/ Signed-off-by: Francesco Dolcini <francesco.dolcini@xxxxxxxxxxx> Link: https://lore.kernel.org/r/20230512131435.205464-2-francesco@xxxxxxxxxx Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- drivers/usb/gadget/udc/core.c | 3 --- 1 file changed, 3 deletions(-) --- a/drivers/usb/gadget/udc/core.c +++ b/drivers/usb/gadget/udc/core.c @@ -676,9 +676,6 @@ static int usb_gadget_connect_locked(str goto out; } - if (gadget->connected) - goto out; - if (gadget->deactivated || !gadget->udc->started) { /* * If gadget is deactivated we only save new state. Patches currently in stable-queue which might be from francesco.dolcini@xxxxxxxxxxx are queue-6.1/revert-usb-gadget-udc-core-prevent-redundant-calls-to-pullup.patch queue-6.1/revert-usb-gadget-udc-core-invoke-usb_gadget_connect-only-when-started.patch queue-6.1/net-stmmac-initialize-mac_oneus_tic_counter-register.patch