[PATCHv10 1/7] I2C: OMAP: I2C register restore only if context is lost
Felipe Balbi
balbi at ti.com
Mon Jun 25 08:30:01 EDT 2012
Hi,
On Mon, Jun 25, 2012 at 04:41:36PM +0530, Shubhrajyoti D wrote:
> Currently i2c register restore is done always.
> Adding conditional restore.
> The i2c register restore is done only if the context is lost
> or in case of error to be on the safe side.
>
> Cc: Kevin Hilman <khilman at ti.com>
> Signed-off-by: Shubhrajyoti D <shubhrajyoti at ti.com>
how will this ever work with DT ? I say we get rid of the OMAP-specific
API and build this "context lost" status directly on dev_pm_info and
have something like pm_runtime_lost_context() or something with pm QoS
tell you if a device has lost its context.
Also, your commit log doesn't really state any problems you might have
reached before, or any improvements wrt latency coming out of suspend
and so on.
IMHO, drivers need a generic way to differentiate if they're resuming
from OFF or RET, otherwise we will end up with a bunch of OMAP-specific
hackery on all drivers
--
balbi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20120625/f28aa29c/attachment.sig>
More information about the linux-arm-kernel
mailing list