提交 da29f2d8 编写于 作者: J Jose Abreu 提交者: David S. Miller

net: stmmac: Fixed link does not need MDIO Bus

When using fixed link we don't need the MDIO bus support.
Reported-by: NHeiko Stuebner <heiko@sntech.de>
Reported-by: Nkernelci.org bot <bot@kernelci.org>
Fixes: d3e014ec ("net: stmmac: platform: Fix MDIO init for platforms without PHY")
Signed-off-by: NJose Abreu <Jose.Abreu@synopsys.com>
Acked-by: NSriram Dash <Sriram.dash@samsung.com>
Tested-by: NPatrice Chotard <patrice.chotard@st.com>
Tested-by: NHeiko Stuebner <heiko@sntech.de>
Acked-by: NNeil Armstrong <narmstrong@baylibre.com>
Reviewed-by: NFlorian Fainelli <f.fainelli@gmail.com>
Tested-by: Florian Fainelli <f.fainelli@gmail> # Lamobo R1 (fixed-link + MDIO sub node for roboswitch).
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 b57e1fff
......@@ -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 = false;
bool mdio = !of_phy_is_fixed_link(np);
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.
先完成此消息的编辑!
想要评论请 注册