spi: rockchip: enable autosuspend feature
authorAlexander Kochetkov <al.kochet@gmail.com>
Fri, 16 Oct 2020 08:50:14 +0000 (11:50 +0300)
committerMark Brown <broonie@kernel.org>
Mon, 26 Oct 2020 23:29:04 +0000 (23:29 +0000)
commit940f3bbf3dacd6e31e482a10e64c96e69b00dded
tree9d0c887f390baa26a5e6487cee0a7ec5eb2badeb
parent345980a3a5e5e1c99fc621e2ce878fb150ad2287
spi: rockchip: enable autosuspend feature

If SPI is used for periodic polling any sensor, significant delays
sometimes appear. Switching on module clocks during resume lead to delays.
Enabling autosuspend mode causes the controller to not suspend between
SPI transfers and the delays disappear.

Signed-off-by: Alexander Kochetkov <al.kochet@gmail.com>
Link: https://lore.kernel.org/r/20201016085014.31667-1-al.kochet@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-rockchip.c