]> git.baikalelectronics.ru Git - kernel.git/commit
usb: dwc3: gadget: set gadgets parent to the right controller
authorMichael Grzeschik <m.grzeschik@pengutronix.de>
Mon, 28 Jun 2021 15:53:07 +0000 (17:53 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 Jul 2021 13:59:18 +0000 (15:59 +0200)
commitd0b572d6ddfd8e1e580fc0c2a33d542a32d74095
tree74d975aef25c8fa33acc01836c93c6a7efb3a761
parent1e8a0ee6ac4b89031d2d4c30c079790b5cdd3e59
usb: dwc3: gadget: set gadgets parent to the right controller

In case of dwc3 it is possible that the sysdev is the parent of the
controller. To ensure the right dev is set to the gadget's dev parent we
will hand over sysdev instead of dev, which will always point to the
controller.

Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Link: https://lore.kernel.org/r/20210628155311.16762-2-m.grzeschik@pengutronix.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc3/gadget.c