Re: [PATCH 2/2] spi/pxa2xx: use a flag to check if the device isruntime suspended

From: Mark Brown
Date: Wed Jun 19 2013 - 05:23:30 EST


On Wed, Jun 19, 2013 at 10:44:37AM +0300, Mika Westerberg wrote:

> I agree that it is better handled outside of the driver (or provide some
> API for drivers). One thing that immediately came to mind is
> adding pm_runtime_suspending() that could be used here like:

> ssp_int()
> {
> if (pm_runtime_suspending(dev) || pm_runtime_suspending(dev))
> return IRQ_NONE;
> ...

> or something like that?

Yes, something like that (probably include the suspended state in the
suspending check).

Attachment: signature.asc
Description: Digital signature