]> bbs.cooldavid.org Git - net-next-2.6.git/commit
i2c-s3c2410: Enable i2c clock only when doing some transfert
authorArnaud Patard (Rtp) <arnaud.patard@rtp-net.org>
Thu, 15 Jul 2010 13:06:14 +0000 (15:06 +0200)
committerBen Dooks <ben-linux@fluff.org>
Thu, 21 Oct 2010 22:43:27 +0000 (23:43 +0100)
commitd2360b8e845ce0e142e72697a504ee9372421dc3
tree36d8af296af35099cf5bea8c0f36bb613260278d
parentf6f94e2ab1b33f0082ac22d71f66385a60d8157f
i2c-s3c2410: Enable i2c clock only when doing some transfert

This patch modify the s3c2410 i2c driver behaviour to enable the
i2c clock only when needed. I'm not sure if this has a big impact
on power usage but at least it's fixing a bug with the uda1380
codec which needs to be hard reset'ed if the i2c clock is enabled
before it's powered on (at least on h1940).

Signed-off-by: Arnaud Patard <arnaud.patard@rtp-net.org>
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
drivers/i2c/busses/i2c-s3c2410.c