usb: host: xhci-plat: Create platform device for onboard hubs in probe()
authorMatthias Kaehlcke <mka@chromium.org>
Wed, 9 Jun 2021 22:02:48 +0000 (15:02 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 15 Jun 2021 13:48:35 +0000 (15:48 +0200)
commitc950686b382d0ea5234545fcce252c9e63d7b7a9
tree67db7952ac5b77e7b312b71ee1d0989e176cf426
parent412981e06294dac3254d83bbf71d4184ea911d05
usb: host: xhci-plat: Create platform device for onboard hubs in probe()

Call onboard_hub_create/destroy_pdevs() from  _probe()/_remove()
to create/destroy platform devices for onboard USB hubs that may
be connected to the root hub of the controller. These functions
are a NOP unless CONFIG_USB_ONBOARD_HUB=y/m.

Also add a field to struct xhci_hcd to keep track of the onboard hub
platform devices that are owned by the xHCI.

Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
Link: https://lore.kernel.org/r/20210609150159.v12.4.I7a3a7d9d2126c34079b1cab87aa0b2ec3030f9b7@changeid
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/Kconfig
drivers/usb/host/xhci-plat.c
drivers/usb/host/xhci.h