Message ID | 20250207122145.162183-2-csokas.bence@prolan.hu (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | [resubmit2] spi: atmel-quadspi: remove references to runtime PM on error path | expand |
On Fri, Feb 07, 2025 at 01:21:45PM +0100, Bence Csókás wrote: > From: Claudiu Beznea <claudiu.beznea@microchip.com> > > 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. Please stop sending this out so often, this is the second resend in just a couple of weeks. Allow some time for review, having multiple copies on the list makes it harder to keep track of any reviews that do happen.
On Fri, 07 Feb 2025 13:21:45 +0100, Bence Csókás wrote: > 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. > > Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next Thanks! [1/1] spi: atmel-quadspi: remove references to runtime PM on error path commit: 99e6ea912340d6a262a60d5dd0c87c5e7b2d6ff2 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark
diff --git a/drivers/spi/atmel-quadspi.c b/drivers/spi/atmel-quadspi.c index d8c9be64d006..244ac0106862 100644 --- a/drivers/spi/atmel-quadspi.c +++ b/drivers/spi/atmel-quadspi.c @@ -930,11 +930,8 @@ static int atmel_qspi_sama7g5_transfer(struct spi_mem *mem, /* Release the chip-select. */ ret = atmel_qspi_reg_sync(aq); - if (ret) { - pm_runtime_mark_last_busy(&aq->pdev->dev); - pm_runtime_put_autosuspend(&aq->pdev->dev); + if (ret) return ret; - } atmel_qspi_write(QSPI_CR_LASTXFER, aq, QSPI_CR); return atmel_qspi_wait_for_completion(aq, QSPI_SR_CSRA);