This is a note to let you know that I've just added the patch titled usb: gadget: aspeed: Fix probe regression 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-gadget-aspeed-fix-probe-regression.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 48ed32482c4100069d0c0eebdc6b198c6ae5f71f Mon Sep 17 00:00:00 2001 From: Joel Stanley <joel@xxxxxxxxx> Date: Mon, 17 Oct 2022 16:00:06 +1030 Subject: usb: gadget: aspeed: Fix probe regression From: Joel Stanley <joel@xxxxxxxxx> commit 48ed32482c4100069d0c0eebdc6b198c6ae5f71f upstream. Since commit fc274c1e9973 ("USB: gadget: Add a new bus for gadgets"), the gadget devices are proper driver core devices, which caused each device to request pinmux settings: aspeed_vhub 1e6a0000.usb-vhub: Initialized virtual hub in USB2 mode aspeed-g5-pinctrl 1e6e2080.pinctrl: pin A7 already requested by 1e6a0000.usb-vhub; cannot claim for gadget.0 aspeed-g5-pinctrl 1e6e2080.pinctrl: pin-232 (gadget.0) status -22 aspeed-g5-pinctrl 1e6e2080.pinctrl: could not request pin 232 (A7) from group USB2AD on device aspeed-g5-pinctrl g_mass_storage gadget.0: Error applying setting, reverse things back The vhub driver has already claimed the pins, so prevent the gadgets from requesting them too by setting the magic of_node_reused flag. This causes the driver core to skip the mux request. Reported-by: Zev Weiss <zev@xxxxxxxxxxxxxxxxx> Reported-by: Jae Hyun Yoo <quic_jaehyoo@xxxxxxxxxxx> Fixes: fc274c1e9973 ("USB: gadget: Add a new bus for gadgets") Cc: stable@xxxxxxxxxxxxxxx Signed-off-by: Joel Stanley <joel@xxxxxxxxx> Tested-by: Zev Weiss <zev@xxxxxxxxxxxxxxxxx> Tested-by: Jae Hyun Yoo <quic_jaehyoo@xxxxxxxxxxx> Link: https://lore.kernel.org/r/20221017053006.358520-1-joel@xxxxxxxxx Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- drivers/usb/gadget/udc/aspeed-vhub/dev.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/usb/gadget/udc/aspeed-vhub/dev.c +++ b/drivers/usb/gadget/udc/aspeed-vhub/dev.c @@ -591,6 +591,7 @@ int ast_vhub_init_dev(struct ast_vhub *v d->gadget.max_speed = USB_SPEED_HIGH; d->gadget.speed = USB_SPEED_UNKNOWN; d->gadget.dev.of_node = vhub->pdev->dev.of_node; + d->gadget.dev.of_node_reused = true; rc = usb_add_gadget_udc(d->port_dev, &d->gadget); if (rc != 0) Patches currently in stable-queue which might be from joel@xxxxxxxxx are queue-6.0/usb-gadget-aspeed-fix-probe-regression.patch