提交 d3e014ec 编写于 作者: P Padmanabhan Rajanbabu 提交者: David S. Miller

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: 74371272 ("net: stmmac: Convert to phylink and remove phylib logic")
Acked-by: NJayati Sahu <jayati.sahu@samsung.com>
Signed-off-by: NSriram Dash <sriram.dash@samsung.com>
Signed-off-by: NPadmanabhan Rajanbabu <p.rajanbabu@samsung.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 af1c0e4e
......@@ -320,7 +320,7 @@ static int stmmac_mtl_setup(struct platform_device *pdev,
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" },
{},
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册