]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: octeon: Missing AAK flag in case of I2C_M_RECV_LEN
authorJan Glauber <jglauber@cavium.com>
Wed, 8 Jun 2016 06:51:17 +0000 (08:51 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Thu, 9 Jun 2016 20:05:32 +0000 (22:05 +0200)
commitc5b52858f26cbe4595b000c1cf8db86bacdf0442
treec44ae9c764fa6129db2b998e7d27f9ab21b6a1f2
parentcf3a8c5de32c898f2bdb603c5d72f5c1ae3f7608
i2c: octeon: Missing AAK flag in case of I2C_M_RECV_LEN

During receive the controller requires the AAK flag for all
bytes but the final one. This was wrong in case of I2C_M_RECV_LEN,
where the decision if the final byte is to be transmitted
happened before adding the additional received length byte.

Set the AAK flag if additional bytes are to be received.

Signed-off-by: Jan Glauber <jglauber@cavium.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-octeon.c