diff options
| author | Jinjie Ruan <[email protected]> | 2024-09-06 02:39:56 +0000 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2024-09-19 10:51:19 +0000 |
| commit | 438efb23f9581659495b85f1f6c7d5946200660c (patch) | |
| tree | c767452ad9bf1744a272862e5f7fc6b900ab9f8d /drivers/spi/atmel-quadspi.c | |
| parent | spi: airoha: fix airoha_snand_{write,read}_data data_len estimation (diff) | |
| download | kernel-438efb23f9581659495b85f1f6c7d5946200660c.tar.gz kernel-438efb23f9581659495b85f1f6c7d5946200660c.zip | |
spi: atmel-quadspi: 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: 4a2f83b7f780 ("spi: atmel-quadspi: add runtime pm support")
Signed-off-by: Jinjie Ruan <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'drivers/spi/atmel-quadspi.c')
| -rw-r--r-- | drivers/spi/atmel-quadspi.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/spi/atmel-quadspi.c b/drivers/spi/atmel-quadspi.c index 936d57869493..9b7aeef6ce99 100644 --- a/drivers/spi/atmel-quadspi.c +++ b/drivers/spi/atmel-quadspi.c @@ -721,6 +721,7 @@ static void atmel_qspi_remove(struct platform_device *pdev) clk_unprepare(aq->pclk); pm_runtime_disable(&pdev->dev); + pm_runtime_dont_use_autosuspend(&pdev->dev); pm_runtime_put_noidle(&pdev->dev); } |
