lkml.org 
[lkml]   [2023]   [Jul]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] phy: starfive: StarFive PHYs should depend on ARCH_STARFIVE
Date
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
\
 
 \ /
  Last update: 2023-07-25 17:49    [W:0.176 / U:2.192 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site