This is a note to let you know that I've just added the patch titled usb: bdc: change state when port disconnected to the 6.0-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: usb-bdc-change-state-when-port-disconnected.patch and it can be found in the queue-6.0 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From fb8f60dd1b67520e0e0d7978ef17d015690acfc1 Mon Sep 17 00:00:00 2001 From: Justin Chen <justinpopo6@xxxxxxxxx> Date: Wed, 5 Oct 2022 12:13:55 -0700 Subject: usb: bdc: change state when port disconnected From: Justin Chen <justinpopo6@xxxxxxxxx> commit fb8f60dd1b67520e0e0d7978ef17d015690acfc1 upstream. When port is connected and then disconnected, the state stays as configured. Which is incorrect as the port is no longer configured, but in a not attached state. Signed-off-by: Justin Chen <justinpopo6@xxxxxxxxx> Acked-by: Florian Fainelli <f.fainelli@xxxxxxxxx> Fixes: efed421a94e6 ("usb: gadget: Add UDC driver for Broadcom USB3.0 device controller IP BDC") Cc: stable <stable@xxxxxxxxxx> Link: https://lore.kernel.org/r/1664997235-18198-1-git-send-email-justinpopo6@xxxxxxxxx Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- drivers/usb/gadget/udc/bdc/bdc_udc.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/usb/gadget/udc/bdc/bdc_udc.c +++ b/drivers/usb/gadget/udc/bdc/bdc_udc.c @@ -151,6 +151,7 @@ static void bdc_uspc_disconnected(struct bdc->delayed_status = false; bdc->reinit = reinit; bdc->test_mode = false; + usb_gadget_set_state(&bdc->gadget, USB_STATE_NOTATTACHED); } /* TNotify wkaeup timer */ Patches currently in stable-queue which might be from justinpopo6@xxxxxxxxx are queue-6.0/usb-bdc-change-state-when-port-disconnected.patch