Skip to contentSkip to conversation

phy: tegra: select USB_COMMON

PATCH In review Arnd Bergmann 2 participants 2 messages May 30, 2018 USB

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 phy: tegra: select USB_COMMON

A built-in PHY driver cannot link against modular USB core code:

drivers/usb/phy/phy-tegra-usb.o: In function `tegra_usb_phy_probe':
phy-tegra-usb.c:(.text+0x6bc): undefined reference to `usb_get_dr_mode'

This uses a 'select' statement in Kconfig like we have for other such PHY drivers.

---
 drivers/usb/phy/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/usb/phy/Kconfig +1 -0
index b9b0a44be679..d7312eed6088 100644
@@ -162,6 +162,7 @@ config USB_MXS_PHY
 config USB_TEGRA_PHY
 	tristate "NVIDIA Tegra USB PHY Driver"
 	depends on ARCH_TEGRA
+	select USB_COMMON
 	select USB_PHY
 	select USB_ULPI
 	help
Reviewed-by on v1 1/1
#1 lore raw
Quoted 19 lines · Arnd Bergmann

A built-in PHY driver cannot link against modular USB core code:

drivers/usb/phy/phy-tegra-usb.o: In function `tegra_usb_phy_probe':
phy-tegra-usb.c:(.text+0x6bc): undefined reference to `usb_get_dr_mode'

This uses a 'select' statement in Kconfig like we have for other such PHY drivers.

---
 drivers/usb/phy/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/usb/phy/Kconfig +0 -0
index b9b0a44be679..d7312eed6088 100644

drivers/usb/phy/Kconfig config USB_MXS_PHY · line 168

Quoted 7 lines
drivers/usb/phy/Kconfig +1 -0
@@ -162,6 +162,7 @@ config USB_MXS_PHY
 config USB_TEGRA_PHY
 	tristate "NVIDIA Tegra USB PHY Driver"
 	depends on ARCH_TEGRA
+	select USB_COMMON
 	select USB_PHY
 	select USB_ULPI
 	help

Thank you!

---
To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html