mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-09 06:43:09 +00:00
net: dsa: mt7530: improve and relax PHY driver dependency
Different MT7530 variants require different PHY drivers. Use 'imply' instead of 'select' to relax the dependency on the PHY driver, and choose the appropriate driver. Signed-off-by: Daniel Golle <daniel@makrotopia.org> Reviewed-by: Simon Horman <horms@kernel.org> Reviewed-by: Vladimir Oltean <olteanv@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
ae1ae5eb14
commit
b9b05381e5
@ -37,7 +37,6 @@ config NET_DSA_LANTIQ_GSWIP
|
||||
config NET_DSA_MT7530
|
||||
tristate "MediaTek MT7530 and MT7531 Ethernet switch support"
|
||||
select NET_DSA_TAG_MTK
|
||||
select MEDIATEK_GE_PHY
|
||||
imply NET_DSA_MT7530_MDIO
|
||||
imply NET_DSA_MT7530_MMIO
|
||||
help
|
||||
@ -49,6 +48,7 @@ config NET_DSA_MT7530
|
||||
config NET_DSA_MT7530_MDIO
|
||||
tristate "MediaTek MT7530 MDIO interface driver"
|
||||
depends on NET_DSA_MT7530
|
||||
imply MEDIATEK_GE_PHY
|
||||
select PCS_MTK_LYNXI
|
||||
help
|
||||
This enables support for the MediaTek MT7530 and MT7531 switch
|
||||
@ -60,6 +60,7 @@ config NET_DSA_MT7530_MMIO
|
||||
tristate "MediaTek MT7530 MMIO interface driver"
|
||||
depends on NET_DSA_MT7530
|
||||
depends on HAS_IOMEM
|
||||
imply MEDIATEK_GE_SOC_PHY
|
||||
help
|
||||
This enables support for the built-in Ethernet switch found
|
||||
in the MediaTek MT7988 SoC.
|
||||
|
Loading…
Reference in New Issue
Block a user