phy: rockchip: naneng-combphy: compatible reset with old DT

The device tree of RK3568 did not specify reset-names before.
So add fallback to old behaviour to be compatible with old DT.

Fixes: fbcbffbac994 ("phy: rockchip: naneng-combphy: fix phy reset")
Cc: Jianfeng Liu <liujianfeng1994@gmail.com>
Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
Reviewed-by: Jonas Karlman <jonas@kwiboo.se>
Link: https://lore.kernel.org/r/20250106100001.1344418-2-amadeus@jmu.edu.cn
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by Chukun Pan and committed by Vinod Koul 3126ea9b fcf5d353

+4 -1
+4 -1
drivers/phy/rockchip/phy-rockchip-naneng-combphy.c
··· 324 325 priv->ext_refclk = device_property_present(dev, "rockchip,ext-refclk"); 326 327 - priv->phy_rst = devm_reset_control_get(dev, "phy"); 328 if (IS_ERR(priv->phy_rst)) 329 return dev_err_probe(dev, PTR_ERR(priv->phy_rst), "failed to get phy reset\n"); 330
··· 324 325 priv->ext_refclk = device_property_present(dev, "rockchip,ext-refclk"); 326 327 + priv->phy_rst = devm_reset_control_get_exclusive(dev, "phy"); 328 + /* fallback to old behaviour */ 329 + if (PTR_ERR(priv->phy_rst) == -ENOENT) 330 + priv->phy_rst = devm_reset_control_array_get_exclusive(dev); 331 if (IS_ERR(priv->phy_rst)) 332 return dev_err_probe(dev, PTR_ERR(priv->phy_rst), "failed to get phy reset\n"); 333