mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] phy: starfive: StarFive PHYs should depend on ARCH_STARFIVE
@ 2023-07-25 15:49 Geert Uytterhoeven
  2023-07-26  1:30 ` Changhuang Liang
  2023-07-26 13:39 ` Vinod Koul
  0 siblings, 2 replies; 3+ messages in thread
From: Geert Uytterhoeven @ 2023-07-25 15:49 UTC (permalink / raw)
  To: Vinod Koul, Kishon Vijay Abraham I, Minda Chen, Roger Quadros,
	Changhuang Liang
  Cc: linux-phy, linux-kernel, Geert Uytterhoeven

The various StarFive PHYs are only present on StarFive SoCs.  Hence add
a dependency on ARCH_STARFIVE, to prevent asking the user about these
drivers when configuring a kernel without StarFive SoC support.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
 drivers/phy/starfive/Kconfig | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/phy/starfive/Kconfig b/drivers/phy/starfive/Kconfig
index a560533a674ee0a5..4457b3872aa146a4 100644
--- a/drivers/phy/starfive/Kconfig
+++ b/drivers/phy/starfive/Kconfig
@@ -3,6 +3,8 @@
 # Phy drivers for StarFive platforms
 #
 
+if ARCH_STARFIVE || COMPILE_TEST
+
 config PHY_STARFIVE_JH7110_DPHY_RX
 	tristate "StarFive JH7110 D-PHY RX support"
 	select GENERIC_PHY
@@ -31,3 +33,5 @@ config PHY_STARFIVE_JH7110_USB
 	  used with the Cadence USB controller.
 	  If M is selected, the module will be called
 	  phy-jh7110-usb.ko.
+
+endif # ARCH_STARFIVE || COMPILE_TEST
-- 
2.34.1


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

end of thread, other threads:[~2023-07-26 13:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-25 15:49 [PATCH] phy: starfive: StarFive PHYs should depend on ARCH_STARFIVE Geert Uytterhoeven
2023-07-26  1:30 ` Changhuang Liang
2023-07-26 13:39 ` Vinod Koul

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

all inboxes | Powered by JetHome®