aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/stmmac.h
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/linux/stmmac.h
parentMerge branch 'dwc_eth_qos' (diff)
downloadlinux-dev-88f8b1bb41c6208f81b6a480244533ded7b59493.tar.xz
linux-dev-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/linux/stmmac.h')
-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;