OSDN Git Service

usb: dwc3: gadget: Revert "set gadgets parent to the right controller"
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 4 Oct 2021 14:18:39 +0000 (17:18 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 Oct 2021 11:44:24 +0000 (13:44 +0200)
commit268bbde716e3a79a747a0f4ebbeb9f63d861737d
treef6fef4cd324f62c5b3dceb4e6cba7c9233e4536b
parent3ea75b3f57e5b2837b980a2cbcf014773d00ae51
usb: dwc3: gadget: Revert "set gadgets parent to the right controller"

The commit c6e23b89a95d ("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: c6e23b89a95d ("usb: dwc3: gadget: set gadgets parent to the right controller")
Tested-by: Ferry Toth <fntoth@gmail.com>
Cc: Michael Grzeschik <m.grzeschik@pengutronix.de>
Cc: Felipe Balbi <balbi@kernel.org>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20211004141839.49079-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc3/gadget.c