linux/drivers/phy/tegra
Johan Hovold 28cfc6ab15 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-09-19 16:35:51 +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 Tegra234 support 2023-01-12 22:57:06 +05:30
phy-tegra194-p2u.c phy: Explicitly include correct DT includes 2023-07-17 11:52:56 +05:30
xusb-tegra124.c phy: tegra: xusb: Remove usb3 supply 2022-11-07 10:20:25 +05:30
xusb-tegra186.c phy: tegra: xusb: Disable periodic tracking on Tegra234 2025-07-24 08:56:20 +02:00
xusb-tegra210.c phy: tegra: xusb: fix device and OF node leak at probe 2025-09-19 16:35:51 +02:00
xusb.c phy: Fix error handling in tegra_xusb_port_init 2025-05-22 14:29:49 +02:00
xusb.h phy: tegra: xusb: Decouple CYA_TRK_CODE_UPDATE_ON_IDLE from trk_hw_mode 2025-07-24 08:56:20 +02:00