[PATCH v2] spi: spi-sun6i: enable autosuspend feature

Maxime Ripard maxime at cerno.tech
Wed Oct 21 11:02:58 EDT 2020


On Mon, Oct 19, 2020 at 06:03:43PM +0300, Alexander Kochetkov wrote:
> From: Alexander Kochetkov <al.kochet at gmail.com>
> 
> 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: Alexander Kochetkov <al.kochet at gmail.com>

Acked-by: Maxime Ripard <mripard at kernel.org>

Thanks!
Maxime
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20201021/c6dfb9be/attachment.sig>


More information about the linux-arm-kernel mailing list