i2c-omap: Set latency requirements only once for several messages
authorSamu Onkalo <samu.p.onkalo@nokia.com>
Thu, 18 Nov 2010 10:04:20 +0000 (12:04 +0200)
committerBen Dooks <ben-linux@fluff.org>
Tue, 4 Jan 2011 01:16:53 +0000 (01:16 +0000)
Ordinary I2C read consist of two messages. First a write operation
to tell register address and then read operation to get data.
CPU wake up latency is set and removed twice in read case.
Set latency requirement before the message processing loop
and remove the requirement after the loop to remove latency
adjustment operations between the messages.

Signed-off-by: Samu Onkalo <samu.p.onkalo@nokia.com>
Acked-by: Kevin Hilman <khilman@deeprootsystems.com>
Acked-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Ben Dooks <ben-linux@fluff.org>

No differences found