]> git.baikalelectronics.ru Git - kernel.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)
commitbc5d9780d797b0baa6305758700dc82f2b6e49fa
tree36d8af296af35099cf5bea8c0f36bb613260278d
parent51256523f44d014bf81a142d3c8a9f90811fa824
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