* [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
* Re: [PATCH] phy: starfive: StarFive PHYs should depend on ARCH_STARFIVE
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
1 sibling, 0 replies; 3+ messages in thread
From: Changhuang Liang @ 2023-07-26 1:30 UTC (permalink / raw)
To: Geert Uytterhoeven, Vinod Koul, Kishon Vijay Abraham I,
Minda Chen, Roger Quadros
Cc: linux-phy, linux-kernel
On 2023/7/25 23:49, Geert Uytterhoeven wrote:
> 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
For dphy rx parts:
Acked-by: Changhuang Liang <changhuang.liang@starfivetech.com>
Thanks,
Changhuang
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] phy: starfive: StarFive PHYs should depend on ARCH_STARFIVE
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
1 sibling, 0 replies; 3+ messages in thread
From: Vinod Koul @ 2023-07-26 13:39 UTC (permalink / raw)
To: Kishon Vijay Abraham I, Minda Chen, Roger Quadros,
Changhuang Liang, Geert Uytterhoeven
Cc: linux-phy, linux-kernel
On Tue, 25 Jul 2023 17:49:27 +0200, Geert Uytterhoeven wrote:
> 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.
>
>
Applied, thanks!
[1/1] phy: starfive: StarFive PHYs should depend on ARCH_STARFIVE
commit: e7379477f4478c290be47cde3ad8a39d5ff561d2
Best regards,
--
~Vinod
^ 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®