[PATCH 1/3] phy: tegra: xusb: fix device and OF node leak at probe
neil.armstrong at linaro.org
neil.armstrong at linaro.org
Wed Aug 6 07:35:09 PDT 2025
On 24/07/2025 15:12, Johan Hovold wrote:
> Make sure to drop the references taken to the PMC OF node and device by
> of_parse_phandle() and of_find_device_by_node() during probe.
>
> Note the holding a reference to the PMC device does not prevent the
> PMC regmap from going away (e.g. if the PMC driver is unbound) so there
> is no need to keep the reference.
>
> Fixes: 2d1021487273 ("phy: tegra: xusb: Add wake/sleepwalk for Tegra210")
> Cc: stable at vger.kernel.org # 5.14
> Cc: JC Kuo <jckuo at nvidia.com>
> Signed-off-by: Johan Hovold <johan at kernel.org>
> ---
> drivers/phy/tegra/xusb-tegra210.c | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)
>
<snip>
Reviewed-by: Neil Armstrong <neil.armstrong at linaro.org>
More information about the linux-phy
mailing list