* [PATCH] phy: microchip: PHY_SPARX5_SERDES should depend on ARCH_SPARX5
@ 2021-03-31 8:19 Geert Uytterhoeven
2021-03-31 11:16 ` Vinod Koul
0 siblings, 1 reply; 2+ messages in thread
From: Geert Uytterhoeven @ 2021-03-31 8:19 UTC (permalink / raw)
To: Bjarni Jonasson, Steen Hegelund, Vinod Koul, Kishon Vijay Abraham I
Cc: Alexandre Belloni, Andrew Lunn, linux-phy, linux-kernel,
Geert Uytterhoeven
The Microchip Sparx5 SerDes PHY is present only Microchip Sparx5 SoCs.
Hence add a dependency on ARCH_SPARX5, to prevent asking the user about
this driver when configuring a kernel without support for Sparx5 SoCs.
Fixes: 2ff8a1eeb5aa8bb4 ("phy: Add Sparx5 ethernet serdes PHY driver")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
drivers/phy/microchip/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/phy/microchip/Kconfig b/drivers/phy/microchip/Kconfig
index 0b1a818e01b88cc5..3728a284bf643d48 100644
--- a/drivers/phy/microchip/Kconfig
+++ b/drivers/phy/microchip/Kconfig
@@ -6,6 +6,7 @@
config PHY_SPARX5_SERDES
tristate "Microchip Sparx5 SerDes PHY driver"
select GENERIC_PHY
+ depends on ARCH_SPARX5 || COMPILE_TEST
depends on OF
depends on HAS_IOMEM
help
--
2.25.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] phy: microchip: PHY_SPARX5_SERDES should depend on ARCH_SPARX5
2021-03-31 8:19 [PATCH] phy: microchip: PHY_SPARX5_SERDES should depend on ARCH_SPARX5 Geert Uytterhoeven
@ 2021-03-31 11:16 ` Vinod Koul
0 siblings, 0 replies; 2+ messages in thread
From: Vinod Koul @ 2021-03-31 11:16 UTC (permalink / raw)
To: Geert Uytterhoeven
Cc: Bjarni Jonasson, Steen Hegelund, Kishon Vijay Abraham I,
Alexandre Belloni, Andrew Lunn, linux-phy, linux-kernel
On 31-03-21, 10:19, Geert Uytterhoeven wrote:
> The Microchip Sparx5 SerDes PHY is present only Microchip Sparx5 SoCs.
> Hence add a dependency on ARCH_SPARX5, to prevent asking the user about
> this driver when configuring a kernel without support for Sparx5 SoCs.
Applied, thanks
--
~Vinod
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-03-31 11:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-31 8:19 [PATCH] phy: microchip: PHY_SPARX5_SERDES should depend on ARCH_SPARX5 Geert Uytterhoeven
2021-03-31 11:16 ` Vinod Koul
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).