net: Always descend into dsa/
Subsystems (2)
PATCH 1/1 net: Always descend into dsa/
Jiri reported that with a kernel built with CONFIG_FIXED_PHY=y, CONFIG_NET_DSA=m and CONFIG_NET_DSA_LOOP=m, we would not get to a functional state where the mock-up driver is registered. Turns out that we are not descending into drivers/net/dsa/ unconditionally, and we won't be able to link-in dsa_loop_bdinfo.o which does the actual mock-up mdio device registration.
--- drivers/net/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/Makefile +1 -1
@@ -40,7 +40,7 @@ obj-$(CONFIG_ARCNET) += arcnet/ obj-$(CONFIG_DEV_APPLETALK) += appletalk/ obj-$(CONFIG_CAIF) += caif/ obj-$(CONFIG_CAN) += can/ -obj-$(CONFIG_NET_DSA) += dsa/ +obj-y += dsa/ obj-$(CONFIG_ETHERNET) += ethernet/ obj-$(CONFIG_FDDI) += fddi/ obj-$(CONFIG_HIPPI) += hippi/
Signature · 1 line
2.17.1
Quoted 10 lines · Florian Fainelli
Jiri reported that with a kernel built with
CONFIG_FIXED_PHY=y,CONFIG_NET_DSA=mandCONFIG_NET_DSA_LOOP=m, we would not get to a functional state where the mock-up driver is registered. Turns out that we are not descending intodrivers/net/dsa/unconditionally, and we won't be able to link-in dsa_loop_bdinfo.o which does the actual mock-up mdio device registration.Reported-by Jiri Pirko <[email protected]>Fixes 40013ff20b1b ("net: dsa: Fix functional dsa-loop dependency on FIXED_PHY")Signed-off-by Florian Fainelli <[email protected]>
Quoted 10 lines · Mon, May 13, 2019 at 11:06:24PM CEST, [email protected] wrote:
Jiri reported that with a kernel built with
CONFIG_FIXED_PHY=y,CONFIG_NET_DSA=mandCONFIG_NET_DSA_LOOP=m, we would not get to a functional state where the mock-up driver is registered. Turns out that we are not descending intodrivers/net/dsa/unconditionally, and we won't be able to link-in dsa_loop_bdinfo.o which does the actual mock-up mdio device registration.Reported-by Jiri Pirko <[email protected]>Fixes 40013ff20b1b ("net: dsa: Fix functional dsa-loop dependency on FIXED_PHY")Signed-off-by Florian Fainelli <[email protected]>
David Miller
maintainerFrom: Florian Fainelli <[email protected]>
Date: Mon, 13 May 2019 14:06:24 -0700
Quoted 10 lines
Jiri reported that with a kernel built with
CONFIG_FIXED_PHY=y,CONFIG_NET_DSA=mandCONFIG_NET_DSA_LOOP=m, we would not get to a functional state where the mock-up driver is registered. Turns out that we are not descending intodrivers/net/dsa/unconditionally, and we won't be able to link-in dsa_loop_bdinfo.o which does the actual mock-up mdio device registration.Reported-by Jiri Pirko <[email protected]>Fixes 40013ff20b1b ("net: dsa: Fix functional dsa-loop dependency on FIXED_PHY")Signed-off-by Florian Fainelli <[email protected]>
Applied and queued up for -stable, thanks.