i2c-mv64xxx: send repeated START between messages in xfer
authorRodolfo Giometti <giometti@linux.it>
Fri, 26 Nov 2010 16:06:56 +0000 (17:06 +0100)
committerBen Dooks <ben-linux@fluff.org>
Tue, 4 Jan 2011 01:19:43 +0000 (01:19 +0000)
commiteda6bee6c7e67b5bd17bdbced0926f5687f686d5
tree3f2be4bb958e1fd320494973d55c45f91381ef4a
parent03ed6a3aa600c48593c3984812fda2d5945ddb46
i2c-mv64xxx: send repeated START between messages in xfer

As stated into file include/linux/i2c.h we must send a repeated START
between messages in the same xfer groupset:

 * Except when I2C "protocol mangling" is used, all I2C adapters implement
 * the standard rules for I2C transactions.  Each transaction begins with a
 * START.  That is followed by the slave address, and a bit encoding read
 * versus write.  Then follow all the data bytes, possibly including a byte
 * with SMBus PEC.  The transfer terminates with a NAK, or when all those
 * bytes have been transferred and ACKed.  If this is the last message in a
 * group, it is followed by a STOP.  Otherwise it is followed by the next
 * @i2c_msg transaction segment, beginning with a (repeated) START.

Signed-off-by: Rodolfo Giometti <giometti@linux.it>
Signed-off-by: Mauro Barella <mbarella@vds-it.com>
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
drivers/i2c/busses/i2c-mv64xxx.c