]> git.baikalelectronics.ru Git - kernel.git/commit
stmmac: Fix 'eth0: No PHY found' regression
authorGabriel Fernandez <gabriel.fernandez@linaro.org>
Mon, 29 Feb 2016 16:18:22 +0000 (17:18 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Mar 2016 20:02:05 +0000 (15:02 -0500)
commit4a93bb035136783b3b13c7448d6f376daf7b62e8
treee8c87a9002356ceebc6ce2276655e4b03ffb14d9
parentea4ff500a094af18df9fbdae420cc9780078cfed
stmmac: Fix 'eth0: No PHY found' regression

This patch manages the case when you have an Ethernet MAC with
a "fixed link", and not connected to a normal MDIO-managed PHY device.

The test of phy_bus_name was not helpful because it was never affected
and replaced by the mdio test node.

Signed-off-by: Gabriel Fernandez <gabriel.fernandez@linaro.org>
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
drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c
include/linux/stmmac.h