Skip to content

Commit 3b577de

Browse files
Jinjie Ruanbroonie
authored andcommitted
spi: spi-fsl-lpspi: Undo runtime PM changes at driver exit time
It's important to undo pm_runtime_use_autosuspend() with pm_runtime_dont_use_autosuspend() at driver exit time unless driver initially enabled pm_runtime with devm_pm_runtime_enable() (which handles it for you). Hence, call pm_runtime_dont_use_autosuspend() at driver exit time to fix it. Fixes: 944c01a ("spi: lpspi: enable runtime pm for lpspi") Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com> Link: https://patch.msgid.link/20240906021251.610462-1-ruanjinjie@huawei.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 438efb2 commit 3b577de

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/spi/spi-fsl-lpspi.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -986,6 +986,7 @@ static void fsl_lpspi_remove(struct platform_device *pdev)
986986

987987
fsl_lpspi_dma_exit(controller);
988988

989+
pm_runtime_dont_use_autosuspend(fsl_lpspi->dev);
989990
pm_runtime_disable(fsl_lpspi->dev);
990991
}
991992

0 commit comments

Comments
 (0)