spi: stm32-qspi: Add pm_runtime support
authorPatrice Chotard <patrice.chotard@st.com>
Fri, 17 Apr 2020 12:12:41 +0000 (14:12 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 17 Apr 2020 13:21:00 +0000 (14:21 +0100)
commit9d282c17b023a97516a63255ce7f7ee65c39bec1
tree7b15947fda91acb0c7a11e28e7dc6da41f8a2789
parent5ba8e3e75361c68c1120080d7ffe8839bf11c06d
spi: stm32-qspi: Add pm_runtime support

By default, STM32_AUTOSUSPEND_DELAY is set to -1 which has for
effect to prevent runtime suspends.
Runtime suspends can be activated by setting autosuspend_delay_ms using
sysfs entry :
echo {delay_in_ms} > /sys/devices/platform/soc/58003000.spi/power/autosusp
end_delay_ms)

Signed-off-by: Christophe Kerello <christophe.kerello@st.com>
Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
Signed-off-by: Benjamin Gaignard <benjamin.gaignard@st.com>
Link: https://lore.kernel.org/r/20200417121241.6473-1-patrice.chotard@st.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-stm32-qspi.c