Re: [PATCH 1/1] spi: mediatek: add power control when set_cs

From: Mark Brown
Date: Wed Oct 23 2019 - 11:11:32 EST


On Wed, Oct 23, 2019 at 08:38:42AM -0400, Luhua Xu wrote:
> From: "luhua.xu" <luhua.xu@xxxxxxxxxxxx>

> Use runtime PM to power spi when set_cs
> As set_cs may be called from interrupt context,
> set runtime PM IRQ safe for spi.

Why might we be trying to set the chip select state while the device is
runtime idle? It seems like whatever is trying to set the chip select
should be dealing with this, not the chip select operation itself since
that's unlikely to be happening in isolation.

Attachment: signature.asc
Description: PGP signature