Skip to content

Commit 40013ff

Browse files
ffainellidavem330
authored andcommitted
net: dsa: Fix functional dsa-loop dependency on FIXED_PHY
We have a functional dependency on the FIXED_PHY MDIO bus because we register fixed PHY devices "the old way" which only works if the code that does this has had a chance to run before the fixed MDIO bus is probed. Make sure we account for that and have dsa_loop_bdinfo.o be either built-in or modular depending on whether CONFIG_FIXED_PHY reflects that too. Fixes: 98cd155 ("net: dsa: Mock-up driver") Signed-off-by: Florian Fainelli <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 53e8269 commit 40013ff

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

drivers/net/dsa/Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
# SPDX-License-Identifier: GPL-2.0
22
obj-$(CONFIG_NET_DSA_BCM_SF2) += bcm-sf2.o
33
bcm-sf2-objs := bcm_sf2.o bcm_sf2_cfp.o
4-
obj-$(CONFIG_NET_DSA_LOOP) += dsa_loop.o dsa_loop_bdinfo.o
4+
obj-$(CONFIG_NET_DSA_LOOP) += dsa_loop.o
5+
ifdef CONFIG_NET_DSA_LOOP
6+
obj-$(CONFIG_FIXED_PHY) += dsa_loop_bdinfo.o
7+
endif
58
obj-$(CONFIG_NET_DSA_MT7530) += mt7530.o
69
obj-$(CONFIG_NET_DSA_MV88E6060) += mv88e6060.o
710
obj-$(CONFIG_NET_DSA_QCA8K) += qca8k.o

0 commit comments

Comments
 (0)