net: dsa: Fix functional dsa-loop dependency on FIXED_PHY
authorFlorian Fainelli <f.fainelli@gmail.com>
Wed, 21 Mar 2018 00:31:10 +0000 (17:31 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 May 2018 05:52:18 +0000 (07:52 +0200)
commitc269eb77dc22a79ad153ec9fd7efaa3d8cd56d00
tree56c2894304c960db604d1ada63e3c275bee8f160
parentbf922554682ba4404d06208ca4196aadd57d0d92
net: dsa: Fix functional dsa-loop dependency on FIXED_PHY

[ Upstream commit 40013ff20b1beed31184935fc0aea6a859d4d4ef ]

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: 98cd1552ea27 ("net: dsa: Mock-up driver")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/dsa/Makefile