• Rodolfo Giometti's avatar
    i2c-mv64xxx: send repeated START between messages in xfer · eda6bee6
    Rodolfo Giometti authored
    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: default avatarRodolfo Giometti <giometti@linux.it>
    Signed-off-by: default avatarMauro Barella <mbarella@vds-it.com>
    Signed-off-by: default avatarBen Dooks <ben-linux@fluff.org>
    eda6bee6
i2c-mv64xxx.c 17.4 KB