i2c: qup: send NACK for last read sub transfers
authorAbhishek Sahu <absahu@codeaurora.org>
Mon, 12 Mar 2018 13:15:00 +0000 (18:45 +0530)
committerWolfram Sang <wsa@the-dreams.de>
Sat, 24 Mar 2018 12:20:41 +0000 (13:20 +0100)
commitf7714b4e451bdcb7918b9aad14af22684ceac638
treed34cdca03983c9ea0496575fe312a2e25ba3dfb7
parent6f2f0f6465acbd59391c43352ff0df77df1f01db
i2c: qup: send NACK for last read sub transfers

According to I2c specification, “If a master-receiver sends a
repeated START condition, it sends a not-acknowledge (A) just
before the repeated START condition”. QUP v2 supports sending
of NACK without stop with QUP_TAG_V2_DATARD_NACK so added the
same.

Signed-off-by: Abhishek Sahu <absahu@codeaurora.org>
Reviewed-by: Austin Christ <austinwc@codeaurora.org>
Reviewed-by: Andy Gross <andy.gross@linaro.org>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-qup.c