]> git.baikalelectronics.ru Git - kernel.git/commit
spi: rockchip: Suspend and resume the bus during NOIRQ_SYSTEM_SLEEP_PM ops
authorshengfei Xu <xsf@rock-chips.com>
Wed, 16 Feb 2022 01:40:27 +0000 (09:40 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 17 Feb 2022 17:15:10 +0000 (17:15 +0000)
commit77205862b32cbf888dc0393b7f58b6efecdcaaf0
treefabdf3a9bcc031a0d99a2aacd03805cdf86df887
parent93b6b8678e7c2293671c5032934ba0e565c579f7
spi: rockchip: Suspend and resume the bus during NOIRQ_SYSTEM_SLEEP_PM ops

the wakeup interrupt handler which is guaranteed not to run while
@resume noirq() is being executed. the patch can help to avoid the
wakeup source try to access spi when the spi is in suspend mode.

Signed-off-by: shengfei Xu <xsf@rock-chips.com>
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
Link: https://lore.kernel.org/r/20220216014028.8123-6-jon.lin@rock-chips.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-rockchip.c