]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
drm/tegra: dsi: Fix missing pm_runtime_disable() in the error handling path of tegra_...
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sat, 2 Sep 2023 15:22:09 +0000 (17:22 +0200)
committerSasha Levin <sashal@kernel.org>
Tue, 26 Mar 2024 22:21:54 +0000 (18:21 -0400)
[ Upstream commit 5286a9fc280c45b6b307ee1b07f7a997e042252c ]

If an error occurs after calling pm_runtime_enable(), pm_runtime_disable()
should be called as already done in the remove function.

Fixes: ef8187d75265 ("drm/tegra: dsi: Implement runtime PM")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Link: https://patchwork.freedesktop.org/patch/msgid/ee4a15c9cd4b574a55cd67c30d2411239ba2cee9.1693667005.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/tegra/dsi.c

index 815e32e05f600cbb437655cde22eca8c5ddaccc7..7bb26655cb3ccf40ddc964dc418af7553d7b4d2e 100644 (file)
@@ -1665,6 +1665,7 @@ static int tegra_dsi_probe(struct platform_device *pdev)
        return 0;
 
 unregister:
+       pm_runtime_disable(&pdev->dev);
        mipi_dsi_host_unregister(&dsi->host);
 mipi_free:
        tegra_mipi_free(dsi->mipi);