[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240720040027.734420-1-zhouzhouyi@gmail.com>
Date: Sat, 20 Jul 2024 04:00:27 +0000
From: Zhouyi Zhou <zhouzhouyi@...il.com>
To: alexandre.torgue@...s.st.com,
joabreu@...opsys.com,
davem@...emloft.net,
edumazet@...gle.com,
pabeni@...hat.com,
kuba@...nel.org,
mcoquelin.stm32@...il.com,
andrew@...n.ch,
linus.walleij@...aro.org,
martin.blumenstingl@...glemail.com,
netdev@...r.kernel.org,
linux-stm32@...md-mailman.stormreply.com,
linux-arm-kernel@...ts.infradead.org,
linux-kernel@...r.kernel.org
Cc: "zhili.liu" <zhili.liu@...s.com.cn>,
Zhouyi Zhou <zhouzhouyi@...il.com>,
wangzhiqiang <zhiqiangwang@...s.com.cn>
Subject: [PATCH] net: stmmac: fix the mistake of the device tree property string of reset gpio in stmmac_mdio_reset
From: "zhili.liu" <zhili.liu@...s.com.cn>
According to Documentation/devicetree/bindings/net/snps,dwmac.yaml,
the device tree property of PHY Reset GPIO should be "snps,reset-gpio".
Use string "snps,reset-gpio" instead of "snps,reset" in stmmac_mdio_reset
when invoking devm_gpiod_get_optional.
Fixes: 7c86f20d15b7 ("net: stmmac: use GPIO descriptors in stmmac_mdio_reset")
Signed-off-by: Zhouyi Zhou <zhouzhouyi@...il.com>
Signed-off-by: wangzhiqiang <zhiqiangwang@...s.com.cn>
Signed-off-by: zhili.liu <zhili.liu@...s.com.cn>
---
drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c
index 03f90676b3ad..b052222458b5 100644
--- a/drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c
+++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c
@@ -462,7 +462,7 @@ int stmmac_mdio_reset(struct mii_bus *bus)
u32 delays[3] = { 0, 0, 0 };
reset_gpio = devm_gpiod_get_optional(priv->device,
- "snps,reset",
+ "snps,reset-gpio",
GPIOD_OUT_LOW);
if (IS_ERR(reset_gpio))
return PTR_ERR(reset_gpio);
--
2.25.1
Powered by blists - more mailing lists