]> git.proxmox.com Git - mirror_ubuntu-zesty-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)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Tue, 20 Jun 2017 10:17:02 +0000 (12:17 +0200)
commit7892ebc23022bc9373345dd5c72c0de92c1a3aa2
tree517a1f04c030e6d157015f242ee542ee9c8d1ac4
parentbb3f1d281b5b7a1981385f8f30515380107487c2
i2c: octeon: Missing AAK flag in case of I2C_M_RECV_LEN

BugLink: https://bugs.launchpad.net/bugs/1688132
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>
(cherry picked from commit 908cf12bbca0f18a23085a5a35301509e034f0a9)
Signed-off-by: dann frazier <dann.frazier@canonical.com>
Acked-by: Colin King <colin.king@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
drivers/i2c/busses/i2c-octeon.c