Re: [PATCH] phy: rockchip-usb: fix reset control leak

From: Xia Yan

Date: Tue Dec 01 2026 - 03:35:51 EST


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@xxxxxxxxxxxxxxxxxxxx/

Thanks,
Xia Yan