Skip to content

Commit 37fcacb

Browse files
geertutorvalds
authored andcommitted
phy: PHY_FSL_LYNX_28G should depend on ARCH_LAYERSCAPE
Freescale Layerscape Lynx 28G SerDes PHYs are only present on Freescale/NXP Layerscape SoCs. Move PHY_FSL_LYNX_28G outside the block for ARCH_MXC, as the latter is meant for i.MX8 SoCs, which is a different family than Layerscape. Add a dependency on ARCH_LAYERSCAPE, to prevent asking the user about this driver when configuring a kernel without Layerscape SoC support. Fixes: 02e2af2 ("Merge tag 'char-misc-5.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc") Fixes: 8f73b37 ("phy: add support for the Layerscape SerDes 28G") Signed-off-by: Geert Uytterhoeven <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 1930a6e commit 37fcacb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

drivers/phy/freescale/Kconfig

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,15 @@ config PHY_FSL_IMX8M_PCIE
2626
Enable this to add support for the PCIE PHY as found on
2727
i.MX8M family of SOCs.
2828

29+
endif
30+
2931
config PHY_FSL_LYNX_28G
3032
tristate "Freescale Layerscape Lynx 28G SerDes PHY support"
3133
depends on OF
34+
depends on ARCH_LAYERSCAPE || COMPILE_TEST
3235
select GENERIC_PHY
3336
help
3437
Enable this to add support for the Lynx SerDes 28G PHY as
3538
found on NXP's Layerscape platforms such as LX2160A.
3639
Used to change the protocol running on SerDes lanes at runtime.
3740
Only useful for a restricted set of Ethernet protocols.
38-
39-
endif

0 commit comments

Comments
 (0)