]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Mar 2018 17:02:47 +0000 (13:02 -0400)
commit90ea44dd0fc96be2f7ce3a66734e1df9170320d2
treecc3a9b0b71d07e99a821cebcaf1396e8078f4bd9
parent48bab8271433b898a70c4d9542c7aa0afbf9d535
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: 54824ee51f3e ("net: dsa: Mock-up driver")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/Makefile