Skip to content
Unverified Commit ae0f18be authored by Alexander Kochetkov's avatar Alexander Kochetkov Committed by Mark Brown
Browse files

spi: spi-sun6i: 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.

The commit also remove unnecessary call to pm_runtime_idle() used
to explicit put device to suspended state. Without pm_runtime_idle() PM
core will put device in the suspended state just after probe() returns.

Signed-off-by: default avatarAlexander Kochetkov <al.kochet@gmail.com>
Acked-by: default avatarMaxime Ripard <mripard@kernel.org>
Link: https://lore.kernel.org/r/20201019150343.2520-1-akochetkov@lintech.ru


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 940f3bbf
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment