[PATCH] phy: rockchip-usb: fix reset control leak
Xia Yan
yanxia at cmss.chinamobile.com
Tue Dec 1 00:35:43 PST 2026
Hi Mani,
> Stop CCing stable list for these minor fixes, please.
Understood. I have dropped the stable Cc in v2.
> Why not devm_reset_control_get()?
You're right. devm_phy_create(base->dev, child, &ops) associates the
PHY device with the child node. v2 moves the reset lookup after that
call and uses devm_reset_control_get(&rk_phy->phy->dev, "phy-reset"),
keeping the lookup on the same child node.
This also removes the custom put action from v1. Lookup errors are
still converted to NULL, as before.
v2: https://patchwork.kernel.org/project/linux-phy/patch/20261201082805.50160d227cb63d84.patch@cmss.chinamobile.com/
Thanks,
Xia Yan
More information about the Linux-rockchip
mailing list