diff options
author | Padmanabhan Rajanbabu <p.rajanbabu@samsung.com> | 2019-12-19 11:17:01 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-12-21 06:27:51 +0100 |
commit | d3e014ec7d5ebe9644b5486bc530b91e62bbf624 (patch) | |
tree | d60920d138628ca065ac32faa63d9b4e25878bb3 /drivers/net | |
parent | llc2: Fix return statement of llc_stat_ev_rx_null_dsap_xid_c (and _test_c) (diff) | |
download | linux-d3e014ec7d5ebe9644b5486bc530b91e62bbf624.tar.xz linux-d3e014ec7d5ebe9644b5486bc530b91e62bbf624.zip |
net: stmmac: platform: Fix MDIO init for platforms without PHY
The current implementation of "stmmac_dt_phy" function initializes
the MDIO platform bus data, even in the absence of PHY. This fix
will skip MDIO initialization if there is no PHY present.
Fixes: 7437127 ("net: stmmac: Convert to phylink and remove phylib logic")
Acked-by: Jayati Sahu <jayati.sahu@samsung.com>
Signed-off-by: Sriram Dash <sriram.dash@samsung.com>
Signed-off-by: Padmanabhan Rajanbabu <p.rajanbabu@samsung.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c index bedaff0c13bd..cc8d7e7bf9ac 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c @@ -320,7 +320,7 @@ out: static int stmmac_dt_phy(struct plat_stmmacenet_data *plat, struct device_node *np, struct device *dev) { - bool mdio = true; + bool mdio = false; static const struct of_device_id need_mdio_ids[] = { { .compatible = "snps,dwc-qos-ethernet-4.10" }, {}, |