]> git.baikalelectronics.ru Git - kernel.git/commit
net: stmmac: Don't search for phys if mdio node is defined.
authorPhil Reid <preid@electromag.com.au>
Tue, 15 Mar 2016 07:34:33 +0000 (15:34 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Mar 2016 22:29:23 +0000 (18:29 -0400)
commit0d04af530092b154b7865585b8fa44126b3da9ad
tree2c0ec8b1a3fed9a3876dd55e8f6283a70d37d499
parentd546490f2e86794bf0e64b71581eda9739e03b5a
net: stmmac: Don't search for phys if mdio node is defined.

If a dt mdio entry has been added least assume that we wont
search for phys attached. The DT and of_mdiobus_register already do
this. This stops DSA phys being found and phys created for them, as
this is handled by the DSA driver.

Signed-off-by: Phil Reid <preid@electromag.com.au>
Acked-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c