i2c: Blackfin TWI: fix REPEAT START mode doesn't repeat
authorSonic Zhang <sonic.zhang@analog.com>
Tue, 19 May 2009 11:21:58 +0000 (07:21 -0400)
committerBen Dooks <ben-linux@fluff.org>
Sat, 13 Jun 2009 09:39:25 +0000 (10:39 +0100)
commit57a8f32eafa6f36ea3a128e8b13f353c5a3ca9b2
treeaf1aaed68c8049c345ca6bfa2b13b66efb73e8a2
parent9528d1c7a541b481a0e80301dc8d545848104023
i2c: Blackfin TWI: fix REPEAT START mode doesn't repeat

Avoid rewrite TWI MASTER_CTL reg when issue next message
In i2c repeat transfer mode, byte count of next message should be filled
into part of the TWI MASTER_CTL reg when interrupt MCOMP of last
message transfer is triggered. But, other bits in this reg should
not be touched.

Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
[ben-linux@fluff.org: shorted subject]
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
drivers/i2c/busses/i2c-bfin-twi.c