Re: platform/i2c busses: pm runtime and system sleep

From: Rafael J. Wysocki
Date: Fri Dec 17 2010 - 08:25:53 EST


On Friday, December 17, 2010, Mark Brown wrote:
> On Thu, Dec 16, 2010 at 11:56:57PM +0530, Rabin Vincent wrote:
>
> > There seem to be some differences between the generic ops and the i2c
> > and platform busses' implementations of the interaction between runtime
> > PM and system sleep:
>
> > (1) The platform bus does not implement the
> > don't-call-pm->suspend()-if pm_runtime_suspended()-returns-true
> > functionality implemented by the generic ops and i2c.
>
> This is platform lagging behind I2C in implementation - both originally
> did what platform does and then I2C was updated and platform wasn't.
>
> It'd be really good if this could all be factored out into the PM core,
> we're going to have to do the same thing for at least SPI as well and
> possibly some other buses :/

So how exactly the PM core is supposed to include those things?

There certainly are other buses that don't want to do them.

Thanks,
Rafael
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/