]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit22f2747a0e7676bc5185d97c075818c3351ea3b1
tree9ce62be24e905f129c390c7944b062f19f6a42a4
parentd5e577df6b3153f48ff20770017ab0c375dad216
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: 7371d799f465 ("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