]> git.baikalelectronics.ru Git - kernel.git/commit
net: stmmac: Fix case when PHY handle is not present
authorJose Abreu <Jose.Abreu@synopsys.com>
Fri, 28 Jun 2019 07:25:07 +0000 (09:25 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 28 Jun 2019 16:18:54 +0000 (09:18 -0700)
commite08a56c85e3d29adfbbebde9d9eb825099d7106d
treed27690b9aea607d2887762f9d473c72ad18dc019
parent7d9c647bb0110d7a561d3a0b0094317ffc5b9b2e
net: stmmac: Fix case when PHY handle is not present

Some DT bindings do not have the PHY handle. Let's fallback to manually
discovery in case phylink_of_phy_connect() fails.

Changes from v1:
- Fixup comment style (Sergei)

Fixes: 7371d799f465 ("net: stmmac: Convert to phylink and remove phylib logic")
Reported-by: Katsuhiro Suzuki <katsuhiro@katsuster.net>
Tested-by: Katsuhiro Suzuki <katsuhiro@katsuster.net>
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>
Cc: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c