linux/drivers/phy/tegra
Johan Hovold 4de4344ed4 phy: tegra: xusb: fix device and OF node leak at probe
commit bca065733a upstream.

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: 2d10214872 ("phy: tegra: xusb: Add wake/sleepwalk for Tegra210")
Cc: stable@vger.kernel.org	# 5.14
Cc: JC Kuo <jckuo@nvidia.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://lore.kernel.org/r/20250724131206.2211-2-johan@kernel.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2025-10-02 13:39:04 +02:00
..
Kconfig phy: tegra: Select USB_COMMON for usb_get_maximum_speed() 2020-04-16 15:05:53 +02:00
Makefile phy: tegra: xusb: Add Tegra194 support 2020-03-19 13:59:46 +01:00
phy-tegra194-p2u.c phy: tegra: convert to devm_platform_ioremap_resource(_byname) 2020-11-16 12:47:48 +05:30
xusb-tegra124.c phy: tegra: Don't use device-managed API to allocate ports 2020-03-19 14:00:05 +01:00
xusb-tegra186.c phy: tegra: xusb: Fix unbalanced regulator disable in UTMI PHY mode 2025-08-28 16:23:58 +02:00
xusb-tegra210.c phy: tegra: xusb: fix device and OF node leak at probe 2025-10-02 13:39:04 +02:00
xusb.c phy: Fix error handling in tegra_xusb_port_init 2025-05-22 14:08:25 +02:00
xusb.h phy: tegra: xusb: Add sleepwalk and suspend/resume 2021-06-03 14:49:34 +02:00