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)
commite882575efc771f130a24322377dc1033551da11d
treefabdf3a9bcc031a0d99a2aacd03805cdf86df887
parent3a4bf922d42efa4e9a3dc803d1fd786d43e8a501
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