net: stmmac: Fix wrapper drivers not detecting PHY
authorJose Abreu <Jose.Abreu@synopsys.com>
Fri, 14 Jun 2019 15:06:57 +0000 (17:06 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 15 Jun 2019 20:58:28 +0000 (13:58 -0700)
commit4838a54050284daac15dfeb1d65677e4dacf1bf5
tree9ce62be24e905f129c390c7944b062f19f6a42a4
parent91d0a48a480a29257e9a787ca73dc62e85bfeb72
net: stmmac: Fix wrapper drivers not detecting PHY

Because of PHYLINK conversion we stopped parsing the phy-handle property
from DT. Unfortunatelly, some wrapper drivers still rely on this phy
node to configure the PHY.

Let's restore the parsing of PHY handle while these wrapper drivers are
not fully converted to PHYLINK.

Fixes: 74371272f97f ("net: stmmac: Convert to phylink and remove phylib logic")
Reported-by: Corentin Labbe <clabbe.montjoie@gmail.com>
Signed-off-by: Jose Abreu <joabreu@synopsys.com>
Cc: Joao Pinto <jpinto@synopsys.com>
Cc: David S. Miller <davem@davemloft.net>
Cc: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Cc: Alexandre Torgue <alexandre.torgue@st.com>
Tested-by: Corentin Labbe <clabbe.montjoie@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c
include/linux/stmmac.h