Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

phy: starfive: StarFive PHYs should depend on ARCH_STARFIVE

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>
Acked-by: Changhuang Liang <changhuang.liang@starfivetech.com>
Link: https://lore.kernel.org/r/12097f6107a18e2f7cfb80f47ac7b27808e062c4.1690300076.git.geert+renesas@glider.be
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Geert Uytterhoeven and committed by
Vinod Koul
e7379477 ec6beb82

+4
+4
drivers/phy/starfive/Kconfig
··· 3 3 # Phy drivers for StarFive platforms 4 4 # 5 5 6 + if ARCH_STARFIVE || COMPILE_TEST 7 + 6 8 config PHY_STARFIVE_JH7110_DPHY_RX 7 9 tristate "StarFive JH7110 D-PHY RX support" 8 10 depends on HAS_IOMEM ··· 34 32 used with the Cadence USB controller. 35 33 If M is selected, the module will be called 36 34 phy-jh7110-usb.ko. 35 + 36 + endif # ARCH_STARFIVE || COMPILE_TEST