Skip to content

Commit 268bbde

Browse files
andy-shevgregkh
authored andcommitted
usb: dwc3: gadget: Revert "set gadgets parent to the right controller"
The commit c6e23b8 ("usb: dwc3: gadget: set gadgets parent to the right controller") changed the device for the UDC and broke the user space scripts that instantiate the USB gadget(s) via ConfigFS. Revert it for now until the better solution will be proposed. Fixes: c6e23b8 ("usb: dwc3: gadget: set gadgets parent to the right controller") Tested-by: Ferry Toth <[email protected]> Cc: Michael Grzeschik <[email protected]> Cc: Felipe Balbi <[email protected]> Signed-off-by: Andy Shevchenko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 3ea75b3 commit 268bbde

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/usb/dwc3/gadget.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4243,7 +4243,7 @@ int dwc3_gadget_init(struct dwc3 *dwc)
42434243
}
42444244

42454245

4246-
usb_initialize_gadget(dwc->sysdev, dwc->gadget, dwc_gadget_release);
4246+
usb_initialize_gadget(dwc->dev, dwc->gadget, dwc_gadget_release);
42474247
dev = &dwc->gadget->dev;
42484248
dev->platform_data = dwc;
42494249
dwc->gadget->ops = &dwc3_gadget_ops;

0 commit comments

Comments
 (0)