i2c: qup: send NACK for last read sub transfers
authorAbhishek Sahu <[email protected]>
Mon, 12 Mar 2018 13:15:00 +0000 (18:45 +0530)
committerWolfram Sang <[email protected]>
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 <[email protected]>
Reviewed-by: Austin Christ <[email protected]>
Reviewed-by: Andy Gross <[email protected]>
Signed-off-by: Wolfram Sang <[email protected]>
drivers/i2c/busses/i2c-qup.c