Skip to content
Unverified Commit 102e9d19 authored by Christophe Kerello's avatar Christophe Kerello Committed by Mark Brown
Browse files

spi: stm32-qspi: fix pm_runtime usage_count counter

pm_runtime usage_count counter is not well managed.
pm_runtime_put_autosuspend callback drops the usage_counter but this
one has never been increased. Add pm_runtime_get_sync callback to bump up
the usage counter. It is also needed to use pm_runtime_force_suspend and
pm_runtime_force_resume APIs to handle properly the clock.

Fixes: 9d282c17

 ("spi: stm32-qspi: Add pm_runtime support")
Signed-off-by: default avatarChristophe Kerello <christophe.kerello@foss.st.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20210419121541.11617-2-patrice.chotard@foss.st.com
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 126bdb60
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment