]> www.infradead.org Git - users/dwmw2/linux.git/commit
spi: spi-cadence-quadspi: Fix OSPI NOR failures during system resume
authorVignesh Raghavendra <vigneshr@ti.com>
Wed, 14 Aug 2024 15:12:37 +0000 (20:42 +0530)
committerMark Brown <broonie@kernel.org>
Wed, 14 Aug 2024 17:26:29 +0000 (18:26 +0100)
commit57d5af2660e9443b081eeaf1c373b3ce48477828
treec9e3c89f0341441d05ccc1748e8a830cba43cb43
parent5d61841c74db8b5bbbf9403f1bd4879f614617d2
spi: spi-cadence-quadspi: Fix OSPI NOR failures during system resume

Its necessary to call pm_runtime_force_*() hooks as part of system
suspend/resume calls so that the runtime_pm hooks get called. This
ensures latest state of the IP is cached and restored during system
sleep. This is especially true if runtime autosuspend is enabled as
runtime suspend hooks may not be called at all before system sleeps.

Without this patch, OSPI NOR enumeration (READ_ID) fails during resume
as context saved during suspend path is inconsistent.

Fixes: 078d62de433b ("spi: cadence-qspi: add system-wide suspend and resume callbacks")
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
Link: https://patch.msgid.link/20240814151237.3856184-1-vigneshr@ti.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-cadence-quadspi.c