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

USB: xen-hcd: Traverse host/ when CONFIG_USB_XEN_HCD is selected

If no other USB HCDs are selected when compiling a small pure virutal
machine, the Xen HCD driver cannot be built.

Fix it by traversing down host/ if CONFIG_USB_XEN_HCD is selected.

Fixes: 494ed3997d75 ("usb: Introduce Xen pvUSB frontend (xen hcd)")
Cc: stable@vger.kernel.org # v5.17+
Signed-off-by: John Ernberg <john.ernberg@actia.se>
Link: https://lore.kernel.org/r/20240517114345.1190755-1-john.ernberg@actia.se
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

John Ernberg and committed by
Greg Kroah-Hartman
8475ffcf fc3568f1

+1
+1
drivers/usb/Makefile
··· 35 35 obj-$(CONFIG_USB_FSL_USB2) += host/ 36 36 obj-$(CONFIG_USB_FOTG210_HCD) += host/ 37 37 obj-$(CONFIG_USB_MAX3421_HCD) += host/ 38 + obj-$(CONFIG_USB_XEN_HCD) += host/ 38 39 39 40 obj-$(CONFIG_USB_C67X00_HCD) += c67x00/ 40 41