[PATCH 1/2] arm64: dts: rockchip: rk3568: add reset-names for combphy
Jianfeng Liu
liujianfeng1994 at gmail.com
Fri Jan 3 09:11:09 PST 2025
Hi,
On Fri, 3 Jan 2025 11:30:16 +0800, Chukun Pan wrote:
>Maybe the merge window is different. Can you test the following patch?
>
>```
>--- a/drivers/phy/rockchip/phy-rockchip-naneng-combphy.c
>+++ b/drivers/phy/rockchip/phy-rockchip-naneng-combphy.c
>@@ -325,6 +325,10 @@ static int rockchip_combphy_parse_dt(struct device *dev, struct rockchip_combphy
> priv->ext_refclk = device_property_present(dev, "rockchip,ext-refclk");
>
> priv->phy_rst = devm_reset_control_get(dev, "phy");
>+ /* fallback to old behaviour */
>+ if (IS_ERR_OR_NULL(priv->phy_rst))
>+ priv->phy_rst = devm_reset_control_array_get_exclusive(dev);
>+
> if (IS_ERR(priv->phy_rst))
> return dev_err_probe(dev, PTR_ERR(priv->phy_rst), "failed to get phy reset\n");
>
>```
Tested with rock-3a. This patch will fix dtb without reset-names property.
Best regards,
Jianfeng
More information about the Linux-rockchip
mailing list