public inbox for linux-tegra@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] phy: tegra: depend on COMMON_CLK to fix compile tests
@ 2021-03-16  7:55 Krzysztof Kozlowski
  2021-03-16 15:43 ` Dmitry Osipenko
  0 siblings, 1 reply; 6+ messages in thread
From: Krzysztof Kozlowski @ 2021-03-16  7:55 UTC (permalink / raw)
  To: Thierry Reding, Jonathan Hunter, linux-tegra, Felipe Balbi,
	Greg Kroah-Hartman, linux-usb, linux-kernel
  Cc: Krzysztof Kozlowski, kernel test robot

From: Krzysztof Kozlowski <krzk@kernel.org>

The Tegra USB PHY driver uses Common Clock Framework thus it cannot be
built on platforms without it (e.g. compile test on MIPS with RALINK and
SOC_RT305X):

    /usr/bin/mips-linux-gnu-ld: drivers/usb/phy/phy-tegra-usb.o: in function `tegra_usb_phy_init':
    phy-tegra-usb.c:(.text+0x1dd4): undefined reference to `clk_get_parent'

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>

---

Changes since v1:
1. Depend on COMMON_CLK always, not only for compile test.
---
 drivers/usb/phy/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/usb/phy/Kconfig b/drivers/usb/phy/Kconfig
index 52eebcb88c1f..7500e77a7d01 100644
--- a/drivers/usb/phy/Kconfig
+++ b/drivers/usb/phy/Kconfig
@@ -163,6 +163,7 @@ config USB_MXS_PHY
 config USB_TEGRA_PHY
 	tristate "NVIDIA Tegra USB PHY Driver"
 	depends on ARCH_TEGRA || COMPILE_TEST
+	depends on COMMON_CLK
 	select USB_COMMON
 	select USB_PHY
 	select USB_ULPI
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-03-16 16:21 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-03-16  7:55 [PATCH v2] phy: tegra: depend on COMMON_CLK to fix compile tests Krzysztof Kozlowski
2021-03-16 15:43 ` Dmitry Osipenko
2021-03-16 15:47   ` Krzysztof Kozlowski
2021-03-16 15:51     ` Krzysztof Kozlowski
2021-03-16 16:14       ` Dmitry Osipenko
2021-03-16 16:20         ` Krzysztof Kozlowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox