Skip to contentSkip to conversation

usb: dwc3: select CONFIG_REGMAP_MMIO

PATCH In review Arnd Bergmann 2 participants 2 messages Oct 21, 2019

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

PATCH 1/1 usb: dwc3: select CONFIG_REGMAP_MMIO

After many randconfig builds, one configuration caused a link error with dwc3-meson-g12a lacking the regmap-mmio code:

drivers/usb/dwc3/dwc3-meson-g12a.o: In function `dwc3_meson_g12a_probe':
dwc3-meson-g12a.c:(.text+0x9f): undefined reference to `__devm_regmap_init_mmio_clk'

Add the select statement that we have for all other users of that dependency.

Fixes c99993376f72 ("usb: dwc3: Add Amlogic G12A DWC3 glue")
---
 drivers/usb/dwc3/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/usb/dwc3/Kconfig +1 -0
index 89abc6078703..556a876c7896 100644
@@ -102,6 +102,7 @@ config USB_DWC3_MESON_G12A
        depends on ARCH_MESON || COMPILE_TEST
        default USB_DWC3
        select USB_ROLE_SWITCH
+	select REGMAP_MMIO
        help
          Support USB2/3 functionality in Amlogic G12A platforms.
 	 Say 'Y' or 'M' if you have one such device.
Signature · 1 line
2.20.0
Acked-by on v1 1/1
#1 lore raw
Quoted 21 lines · Arnd Bergmann

After many randconfig builds, one configuration caused a link error with dwc3-meson-g12a lacking the regmap-mmio code:

drivers/usb/dwc3/dwc3-meson-g12a.o: In function `dwc3_meson_g12a_probe':
dwc3-meson-g12a.c:(.text+0x9f): undefined reference to `__devm_regmap_init_mmio_clk'

Add the select statement that we have for all other users of that dependency.

Fixes c99993376f72 ("usb: dwc3: Add Amlogic G12A DWC3 glue")
---
 drivers/usb/dwc3/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/usb/dwc3/Kconfig +0 -0
index 89abc6078703..556a876c7896 100644

drivers/usb/dwc3/Kconfig config USB_DWC3_MESON_G12A · line 108

Quoted 7 lines
drivers/usb/dwc3/Kconfig +1 -0
@@ -102,6 +102,7 @@ config USB_DWC3_MESON_G12A
        depends on ARCH_MESON || COMPILE_TEST
        default USB_DWC3
        select USB_ROLE_SWITCH
+	select REGMAP_MMIO
        help
          Support USB2/3 functionality in Amlogic G12A platforms.
 	 Say 'Y' or 'M' if you have one such device.