This is a note to let you know that I've just added the patch titled usb: dwc3: meson-g12a: do post init to fix broken usb after resumption 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: usb-dwc3-meson-g12a-do-post-init-to-fix-broken-usb-after-resumption.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 1fa206bb764f37d2ab4bf671e483153ef0659b34 Mon Sep 17 00:00:00 2001 From: Luke Lu <luke.lu@libre.computer> Date: Wed, 9 Aug 2023 21:29:11 +0000 Subject: usb: dwc3: meson-g12a: do post init to fix broken usb after resumption From: Luke Lu <luke.lu@libre.computer> commit 1fa206bb764f37d2ab4bf671e483153ef0659b34 upstream. Device connected to usb otg port of GXL-based boards can not be recognised after resumption, doesn't recover even if disconnect and reconnect the device. dmesg shows it disconnects during resumption. [ 41.492911] usb 1-2: USB disconnect, device number 3 [ 41.499346] usb 1-2: unregistering device [ 41.511939] usb 1-2: unregistering interface 1-2:1.0 Calling usb_post_init() will fix this issue, and it's tested and verified on libretech's aml-s905x-cc board. Cc: stable@xxxxxxxxxxxxxxx # v5.8+ Fixes: c99993376f72 ("usb: dwc3: Add Amlogic G12A DWC3 glue") Signed-off-by: Luke Lu <luke.lu@libre.computer> Acked-by: Neil Armstrong <neil.armstrong@xxxxxxxxxx> Link: https://lore.kernel.org/r/20230809212911.18903-1-luke.lu@libre.computer Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- drivers/usb/dwc3/dwc3-meson-g12a.c | 6 ++++++ 1 file changed, 6 insertions(+) --- a/drivers/usb/dwc3/dwc3-meson-g12a.c +++ b/drivers/usb/dwc3/dwc3-meson-g12a.c @@ -938,6 +938,12 @@ static int __maybe_unused dwc3_meson_g12 return ret; } + if (priv->drvdata->usb_post_init) { + ret = priv->drvdata->usb_post_init(priv); + if (ret) + return ret; + } + return 0; } Patches currently in stable-queue which might be from stable@xxxxxxxxxxxxxxx are queue-6.1/erofs-ensure-that-the-post-eof-tails-are-all-zeroed.patch queue-6.1/usb-serial-option-add-foxconn-t99w368-t99w373-product.patch queue-6.1/ksmbd-reduce-descriptor-size-if-remaining-bytes-is-less-than-request-size.patch queue-6.1/alsa-usb-audio-fix-init-call-orders-for-uac1.patch queue-6.1/usb-serial-option-add-quectel-em05g-variant-0x030e.patch queue-6.1/ksmbd-fix-slub-overflow-in-ksmbd_decode_ntlmssp_auth_blob.patch queue-6.1/ksmbd-fix-wrong-dataoffset-validation-of-create-context.patch queue-6.1/hid-wacom-remove-the-battery-when-the-ekr-is-off.patch queue-6.1/usb-dwc3-meson-g12a-do-post-init-to-fix-broken-usb-after-resumption.patch queue-6.1/usb-chipidea-imx-improve-logic-if-samsung-picophy-parameter-is-0.patch queue-6.1/ksmbd-replace-one-element-array-with-flex-array-member-in-struct-smb2_ea_info.patch