Skip to content

Commit 1b7ad8c

Browse files
KamalDasubroonie
authored andcommitted
spi: bcm-qspi: Make PM suspend/resume work with SCMI clock management
SCMI only passes clk_prepare_enable() and clk_disable_unprepare(), made changes to suspend/resume ops to use the appropriate calls so that PM works for ARM and ARM64 platforms. Signed-off-by: Kamal Dasu <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 742d595 commit 1b7ad8c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/spi/spi-bcm-qspi.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1411,7 +1411,7 @@ static int __maybe_unused bcm_qspi_suspend(struct device *dev)
14111411
bcm_qspi_read(qspi, BSPI, BSPI_STRAP_OVERRIDE_CTRL);
14121412

14131413
spi_master_suspend(qspi->master);
1414-
clk_disable(qspi->clk);
1414+
clk_disable_unprepare(qspi->clk);
14151415
bcm_qspi_hw_uninit(qspi);
14161416

14171417
return 0;
@@ -1429,7 +1429,7 @@ static int __maybe_unused bcm_qspi_resume(struct device *dev)
14291429
qspi->soc_intc->bcm_qspi_int_set(qspi->soc_intc, MSPI_DONE,
14301430
true);
14311431

1432-
ret = clk_enable(qspi->clk);
1432+
ret = clk_prepare_enable(qspi->clk);
14331433
if (!ret)
14341434
spi_master_resume(qspi->master);
14351435

0 commit comments

Comments
 (0)