Skip to content

Commit 089667a

Browse files
geertuvinodkoul
authored andcommitted
phy: realtek: Realtek PHYs should depend on ARCH_REALTEK
The Realtek SoC USB2 and USB3 PHY Transceivers are only present on Realtek Digital Home Center (DHC) RTD series SoCs. Hence add a dependency on ARCH_REALTEK, to prevent asking the user about these drivers when configuring a kernel without Realtek SoC support. Signed-off-by: Geert Uytterhoeven <[email protected]> Link: https://lore.kernel.org/r/2892527cac9af6fa8f5e7b8daeffd7d4351fde68.1692113167.git.geert+renesas@glider.be Signed-off-by: Vinod Koul <[email protected]>
1 parent 11395c3 commit 089667a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

drivers/phy/realtek/Kconfig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
#
33
# Phy drivers for Realtek platforms
44
#
5+
6+
if ARCH_REALTEK || COMPILE_TEST
7+
58
config PHY_RTK_RTD_USB2PHY
69
tristate "Realtek RTD USB2 PHY Transceiver Driver"
710
depends on USB_SUPPORT
@@ -25,3 +28,5 @@ config PHY_RTK_RTD_USB3PHY
2528
The DHC (digital home center) RTD series SoCs used the Synopsys
2629
DWC3 USB IP. This driver will do the PHY initialization
2730
of the parameters.
31+
32+
endif # ARCH_REALTEK || COMPILE_TEST

0 commit comments

Comments
 (0)