[PATCH 6/6] ASoC: tegra: tegra210_ahub: Depopulate child devices on remove
Arina Kharlamova via B4 Relay
devnull+arina.kharlamova.mbzuai.ac.ae at kernel.org
Tue Dec 1 11:23:37 PST 2026
From: Arina Kharlamova <arina.kharlamova at mbzuai.ac.ae>
tegra_ahub_probe() creates the AHUB child devices with
of_platform_populate(), but tegra_ahub_remove() only disables runtime
PM. The children stay registered and bound to their drivers after the
AHUB driver is unbound. They also keep using the AHUB as their parent
while its runtime PM is disabled, and a later probe of the AHUB does
not create them again.
Call of_platform_depopulate() in tegra_ahub_remove() before runtime PM
of the AHUB device is disabled, as tegra30_ahub does.
Fixes: 16e1bcc2caf4 ("ASoC: tegra: Add Tegra210 based AHUB driver")
Signed-off-by: Arina Kharlamova <arina.kharlamova at mbzuai.ac.ae>
---
sound/soc/tegra/tegra210_ahub.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/sound/soc/tegra/tegra210_ahub.c b/sound/soc/tegra/tegra210_ahub.c
index 3deaa599f53a..c2fffdf5e0ce 100644
--- a/sound/soc/tegra/tegra210_ahub.c
+++ b/sound/soc/tegra/tegra210_ahub.c
@@ -2654,6 +2654,7 @@ static int tegra_ahub_probe(struct platform_device *pdev)
static void tegra_ahub_remove(struct platform_device *pdev)
{
+ of_platform_depopulate(&pdev->dev);
pm_runtime_disable(&pdev->dev);
}
--
Git-157)
More information about the Linux-rockchip
mailing list