Re: [PATCH v3 1/1] spi: spi-cadence-quadspi: Fix pm runtime unbalance
From: Mark Brown
Date: Tue Jun 24 2025 - 14:40:01 EST
On Mon, 16 Jun 2025 09:13:53 +0800, khairul.anuar.romli@xxxxxxxxxx wrote:
> Having PM put sync in remove function is causing PM underflow during
> remove operation. This is caused by the function, runtime_pm_get_sync,
> not being called anywhere during the op. Ensure that calls to
> pm_runtime_enable()/pm_runtime_disable() and
> pm_runtime_get_sync()/pm_runtime_put_sync() match.
>
> echo 108d2000.spi > /sys/bus/platform/drivers/cadence-qspi/unbind
> [ 49.644256] Deleting MTD partitions on "108d2000.spi.0":
> [ 49.649575] Deleting u-boot MTD partition
> [ 49.684087] Deleting root MTD partition
> [ 49.724188] cadence-qspi 108d2000.spi: Runtime PM usage count underflow!
>
> [...]
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next
Thanks!
[1/1] spi: spi-cadence-quadspi: Fix pm runtime unbalance
commit: b07f349d1864abe29436f45e3047da2bdd476462
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