Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

usb: host: xhci-plat: omit shared hcd if either root hub has no ports

Activate the just added extension for xhci-plat and omit the shared
hcd if either of the root hubs has no ports.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Link: https://lore.kernel.org/r/20220511220450.85367-6-mathias.nyman@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Heiner Kallweit and committed by
Greg Kroah-Hartman
4736ebd7 e0fe9869

+2
+2
drivers/usb/host/xhci-plat.c
··· 245 245 246 246 xhci = hcd_to_xhci(hcd); 247 247 248 + xhci->allow_single_roothub = 1; 249 + 248 250 /* 249 251 * Not all platforms have clks so it is not an error if the 250 252 * clock do not exist.