Måns Rullgård a45af72a60 i2c: xlr: fix extra read/write at end of rx transfer
The BYTECNT register holds the transfer size minus one.  Setting it to
the correct value removes the need for a dummy read/write at the end of
each transfer.  As zero-length transfers are not supported, do not
advertise I2C_FUNC_SMBUS_QUICK.

In other words, this patch makes the driver transfer the number of bytes
requested unless this is zero, which is not supported by the hardware
and is thus refused.

Signed-off-by: Mans Rullgard <mans@mansr.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
2015-12-16 11:42:30 +01:00
..
2014-11-07 18:35:33 +01:00
2014-11-07 18:35:33 +01:00
2015-10-23 23:26:44 +02:00
2015-06-01 08:41:26 +09:00
2014-11-07 18:35:33 +01:00