Skip to contentSkip to conversation

usb/gadget: aspeed-vhub: add USB_LIBCOMPOSITE dependency

PATCH RESEND In review Arnd Bergmann 2 participants 2 messages Jul 6, 2018 – Jul 7, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 usb/gadget: aspeed-vhub: add USB_LIBCOMPOSITE dependency

Without that option, we run into a link failure:

drivers/usb/gadget/udc/aspeed-vhub/hub.o: In function `ast_vhub_std_hub_request':
hub.c:(.text+0x5b0): undefined reference to `usb_gadget_get_string'

Fixes 7ecca2a4080c ("usb/gadget: Add driver for Aspeed SoC virtual hub")

---
Greg, as discussed in https://patchwork.kernel.org/patch/10427921/,
please apply this as a bugfix for 4.18.

Arnd

---
 drivers/usb/gadget/udc/aspeed-vhub/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/usb/gadget/udc/aspeed-vhub/Kconfig +1 -0
index f0cdf89b8503..83ba8a2eb6af 100644
@@ -2,6 +2,7 @@
 config USB_ASPEED_VHUB
 	tristate "Aspeed vHub UDC driver"
 	depends on ARCH_ASPEED || COMPILE_TEST
+	depends on USB_LIBCOMPOSITE
 	help
 	  USB peripheral controller for the Aspeed AST2500 family
 	  SoCs supporting the "vHub" functionality and USB2.0
Signature · 1 line
2.9.0
#1 lore raw
Quoted 11 lines · Arnd Bergmann

Without that option, we run into a link failure:

drivers/usb/gadget/udc/aspeed-vhub/hub.o: In function `ast_vhub_std_hub_request':
hub.c:(.text+0x5b0): undefined reference to `usb_gadget_get_string'

Fixes 7ecca2a4080c ("usb/gadget: Add driver for Aspeed SoC virtual hub")

---
Greg, as discussed in https://patchwork.kernel.org/patch/10427921/,
please apply this as a bugfix for 4.18.

Which I acked too though on second thoughts, shouldn't the driver select USB_LIBCOMPOSITE ? No biggie, either way and that patch can/should go in, we can change things later if we change our mind.

Cheers,
Ben.

Quoted 17 lines

Arnd

---
 drivers/usb/gadget/udc/aspeed-vhub/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/usb/gadget/udc/aspeed-vhub/Kconfig +1 -0
index f0cdf89b8503..83ba8a2eb6af 100644
@@ -2,6 +2,7 @@
 config USB_ASPEED_VHUB
 	tristate "Aspeed vHub UDC driver"
 	depends on ARCH_ASPEED || COMPILE_TEST
+	depends on USB_LIBCOMPOSITE
 	help
 	  USB peripheral controller for the Aspeed AST2500 family
 	  SoCs supporting the "vHub" functionality and USB2.0