Skip to content

Commit 99e6ea9

Browse files
claudiubezneabroonie
authored andcommitted
spi: atmel-quadspi: remove references to runtime PM on error path
There is no need to call runtime PM put APIs on error path of `atmel_qspi_sama7g5_transfer()` as the caller (`atmel_qspi_exec_op()`) of it will take care of this if needed. Fixes: 5af4220 ("spi: atmel-quadspi: Add support for sama7g5 QSPI") Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com> Signed-off-by: Durai Manickam KR <durai.manickamkr@microchip.com> Reported-by: Alexander Dahl <ada@thorsis.com> Closes: https://lore.kernel.org/linux-spi/20250109-carat-festivity-5f088e1add3c@thorsis.com/ [ csokas.bence: Rebase and clarify msg, fix/add tags ] Signed-off-by: Bence Csókás <csokas.bence@prolan.hu> Link: https://patch.msgid.link/20250207122145.162183-2-csokas.bence@prolan.hu Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 0ad2507 commit 99e6ea9

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

drivers/spi/atmel-quadspi.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -930,11 +930,8 @@ static int atmel_qspi_sama7g5_transfer(struct spi_mem *mem,
930930

931931
/* Release the chip-select. */
932932
ret = atmel_qspi_reg_sync(aq);
933-
if (ret) {
934-
pm_runtime_mark_last_busy(&aq->pdev->dev);
935-
pm_runtime_put_autosuspend(&aq->pdev->dev);
933+
if (ret)
936934
return ret;
937-
}
938935
atmel_qspi_write(QSPI_CR_LASTXFER, aq, QSPI_CR);
939936

940937
return atmel_qspi_wait_for_completion(aq, QSPI_SR_CSRA);

0 commit comments

Comments
 (0)