Re: [PATCH v2 1/9] i2c: prepare runtime PM support for I2C clientdevices

From: Mark Brown
Date: Mon Sep 16 2013 - 19:31:55 EST


On Mon, Sep 16, 2013 at 09:07:07PM +0200, Rafael J. Wysocki wrote:

> That may be left to the client driver altogether. I mean, if the client wants
> the controller to be powered up, it should just call
> pm_runtime_get_sync(controller device) at a suitable place (and then do the
> corresponding _put when the controller is not necessary anu more) from its
> ->probe() callback.

It shouldn't even need to do that, it should just be able to rely on the
controller to power itself up when asked to do work. This is how the
existing implementations are done - the controller power management is
totally transparent to the slave.

Attachment: signature.asc
Description: Digital signature