]> git.baikalelectronics.ru Git - kernel.git/commit
usb: dwc3: select USB_ROLE_SWITCH
authorArnd Bergmann <arnd@arndb.de>
Tue, 5 May 2020 14:15:09 +0000 (16:15 +0200)
committerFelipe Balbi <balbi@kernel.org>
Sat, 9 May 2020 08:05:09 +0000 (11:05 +0300)
commit4c8daed627e58b95a738bc2fc7c99694db314e91
treeb8ad54ec112c7d6261b69abb13e5084a9f300b9c
parent21616bec85a2c267ec81543af5b26f50c6923347
usb: dwc3: select USB_ROLE_SWITCH

Calling into the role switch API requires that these functions
are loaded, if they are in a loadable module and dwc3 itself
is built-in, this produces a link error:

drivers/usb/dwc3/drd.o: In function `dwc3_usb_role_switch_get':
drd.c:(.text+0x26): undefined reference to `usb_role_switch_get_drvdata'
drivers/usb/dwc3/drd.o: In function `dwc3_usb_role_switch_set':
drd.c:(.text+0x97): undefined reference to `usb_role_switch_get_drvdata'
drivers/usb/dwc3/drd.o: In function `dwc3_drd_init':
drd.c:(.text+0x1ca7): undefined reference to `usb_role_switch_register'
drivers/usb/dwc3/drd.o: In function `dwc3_drd_exit':
drd.c:(.text+0x1e92): undefined reference to `usb_role_switch_unregister'

Select the USB_ROLE_SWITCH symbol from dwc3 in that configuration.

Fixes: 53f4f46cad7e ("usb: dwc3: fix up for role switch API change")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
drivers/usb/dwc3/Kconfig