path: root/include
diff options
authorGiuseppe CAVALLARO <>2016-04-01 09:07:16 +0200
committerDavid S. Miller <>2016-04-01 14:38:59 -0400
commita7657f128c279ae5796ab2ca7d04a7819f4259f0 (patch)
tree160bc8bb98d4211393230dcfbc6440359c00ecd0 /include
parentd7e944c8ddc0983640a9a32868fb217485d12ca2 (diff)
stmmac: fix MDIO settings
Initially the phy_bus_name was added to manipulate the driver name but it was recently just used to manage the fixed-link and then to take some decision at run-time. So the patch uses the is_pseudo_fixed_link and removes the phy_bus_name variable not necessary anymore. The driver can manage the mdio registration by using phy-handle, dwmac-mdio and own parameter e.g. snps,phy-addr. This patch takes care about all these possible configurations and fixes the mdio registration in case of there is a real transceiver or a switch (that needs to be managed by using fixed-link). Signed-off-by: Giuseppe Cavallaro <> Reviewed-by: Andreas Färber <> Tested-by: Frank Schäfer <> Cc: Gabriel Fernandez <> Cc: Dinh Nguyen <> Cc: David S. Miller <> Cc: Phil Reid <> Signed-off-by: David S. Miller <>
Diffstat (limited to 'include')
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/stmmac.h b/include/linux/stmmac.h
index 6e53fa8942a4..e6bc30a42a74 100644
--- a/include/linux/stmmac.h
+++ b/include/linux/stmmac.h
@@ -108,12 +108,12 @@ struct stmmac_axi {
struct plat_stmmacenet_data {
- char *phy_bus_name;
int bus_id;
int phy_addr;
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;