summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGabriel Fernandez <gabriel.fernandez@linaro.org>2016-02-29 17:18:22 +0100
committerDavid S. Miller <davem@davemloft.net>2016-03-03 15:02:05 -0500
commit88f8b1bb41c6208f81b6a480244533ded7b59493 (patch)
treee8c87a9002356ceebc6ce2276655e4b03ffb14d9 /include
parentebc9780c93077a1c1129879de783f7fa8551d399 (diff)
downloadlwn-88f8b1bb41c6208f81b6a480244533ded7b59493.tar.gz
lwn-88f8b1bb41c6208f81b6a480244533ded7b59493.zip
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>
Diffstat (limited to 'include')
-rw-r--r--include/linux/stmmac.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/stmmac.h b/include/linux/stmmac.h
index eead8ab93c0a..881a79d52467 100644
--- a/include/linux/stmmac.h
+++ b/include/linux/stmmac.h
@@ -100,6 +100,7 @@ struct plat_stmmacenet_data {
int interface;
struct stmmac_mdio_bus_data *mdio_bus_data;
struct device_node *phy_node;
+ struct device_node *mdio_node;
struct stmmac_dma_cfg *dma_cfg;
int clk_csr;
int has_gmac;