* [PATCH] net: Always descend into dsa/
@ 2019-05-13 21:06 Florian Fainelli
2019-05-13 23:29 ` Vivien Didelot
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Florian Fainelli @ 2019-05-13 21:06 UTC (permalink / raw)
To: netdev; +Cc: andrew, vivien.didelot, Jiri Pirko, davem, Florian Fainelli
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.
Reported-by: Jiri Pirko <jiri@resnulli.us>
Fixes: 40013ff20b1b ("net: dsa: Fix functional dsa-loop dependency on FIXED_PHY")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
---
drivers/net/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/Makefile b/drivers/net/Makefile
index 21cde7e78621..0d3ba056cda3 100644
--- a/drivers/net/Makefile
+++ b/drivers/net/Makefile
@@ -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/
--
2.17.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] net: Always descend into dsa/
2019-05-13 21:06 [PATCH] net: Always descend into dsa/ Florian Fainelli
@ 2019-05-13 23:29 ` Vivien Didelot
2019-05-14 16:04 ` Jiri Pirko
2019-05-14 22:20 ` David Miller
2 siblings, 0 replies; 4+ messages in thread
From: Vivien Didelot @ 2019-05-13 23:29 UTC (permalink / raw)
To: Florian Fainelli; +Cc: netdev, andrew, Jiri Pirko, davem, Florian Fainelli
On Mon, 13 May 2019 14:06:24 -0700, Florian Fainelli <f.fainelli@gmail.com> wrote:
> 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.
>
> Reported-by: Jiri Pirko <jiri@resnulli.us>
> Fixes: 40013ff20b1b ("net: dsa: Fix functional dsa-loop dependency on FIXED_PHY")
> Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Vivien Didelot <vivien.didelot@gmail.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] net: Always descend into dsa/
2019-05-13 21:06 [PATCH] net: Always descend into dsa/ Florian Fainelli
2019-05-13 23:29 ` Vivien Didelot
@ 2019-05-14 16:04 ` Jiri Pirko
2019-05-14 22:20 ` David Miller
2 siblings, 0 replies; 4+ messages in thread
From: Jiri Pirko @ 2019-05-14 16:04 UTC (permalink / raw)
To: Florian Fainelli; +Cc: netdev, andrew, vivien.didelot, davem
Mon, May 13, 2019 at 11:06:24PM CEST, f.fainelli@gmail.com wrote:
>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.
>
>Reported-by: Jiri Pirko <jiri@resnulli.us>
>Fixes: 40013ff20b1b ("net: dsa: Fix functional dsa-loop dependency on FIXED_PHY")
>Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Tested-by: Jiri Pirko <jiri@resnulli.us>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] net: Always descend into dsa/
2019-05-13 21:06 [PATCH] net: Always descend into dsa/ Florian Fainelli
2019-05-13 23:29 ` Vivien Didelot
2019-05-14 16:04 ` Jiri Pirko
@ 2019-05-14 22:20 ` David Miller
2 siblings, 0 replies; 4+ messages in thread
From: David Miller @ 2019-05-14 22:20 UTC (permalink / raw)
To: f.fainelli; +Cc: netdev, andrew, vivien.didelot, jiri
From: Florian Fainelli <f.fainelli@gmail.com>
Date: Mon, 13 May 2019 14:06:24 -0700
> 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.
>
> Reported-by: Jiri Pirko <jiri@resnulli.us>
> Fixes: 40013ff20b1b ("net: dsa: Fix functional dsa-loop dependency on FIXED_PHY")
> Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Applied and queued up for -stable, thanks.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2019-05-14 22:20 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-13 21:06 [PATCH] net: Always descend into dsa/ Florian Fainelli
2019-05-13 23:29 ` Vivien Didelot
2019-05-14 16:04 ` Jiri Pirko
2019-05-14 22:20 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox