Skip to contentSkip to conversation

phy: tegra: Select USB_COMMON for usb_get_maximum_speed()

PATCH New Thierry Reding 1 participant 1 message Mar 30, 2020

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

PATCH 1/1 phy: tegra: Select USB_COMMON for usb_get_maximum_speed()

From: Thierry Reding <[email protected]>

The usb_get_maximum_speed() function is part of the usb-common module, so enable it by selecting the corresponding Kconfig symbol.

While at it, also make sure to depend on USB_SUPPORT because USB_PHY requires that. This can lead to Kconfig conflicts if USB_SUPPORT is not enabled while attempting to enable PHY_TEGRA_XUSB.

---
Hi Greg,

sending this directly to you since it fixes a build issue introduced in the pull request that you merged last week, so it needs to be applied on top of that.

Thierry

 drivers/phy/tegra/Kconfig | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/phy/tegra/Kconfig +2 -1
index a208aca4ba7b..c591c958f1eb 100644
@@ -1,7 +1,8 @@
 # SPDX-License-Identifier: GPL-2.0-only
 config PHY_TEGRA_XUSB
 	tristate "NVIDIA Tegra XUSB pad controller driver"
-	depends on ARCH_TEGRA
+	depends on ARCH_TEGRA && USB_SUPPORT
+	select USB_COMMON
 	select USB_CONN_GPIO
 	select USB_PHY
 	help
Signature · 1 line
2.24.1