summaryrefslogtreecommitdiff
path: root/include/linux/stmmac.h
diff options
context:
space:
mode:
authorGabriel Fernandez <gabriel.fernandez@linaro.org>2016-02-29 19:18:22 +0300
committerDavid S. Miller <davem@davemloft.net>2016-03-03 23:02:05 +0300
commit88f8b1bb41c6208f81b6a480244533ded7b59493 (patch)
treee8c87a9002356ceebc6ce2276655e4b03ffb14d9 /include/linux/stmmac.h
parentebc9780c93077a1c1129879de783f7fa8551d399 (diff)
downloadlinux-88f8b1bb41c6208f81b6a480244533ded7b59493.tar.xz
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;