]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
i2c: qup: Fix error handling
authorSricharan R <sricharan@codeaurora.org>
Fri, 10 Jun 2016 18:08:21 +0000 (23:38 +0530)
committerWolfram Sang <wsa@the-dreams.de>
Sat, 18 Jun 2016 16:25:32 +0000 (18:25 +0200)
commitfbf9921f8b35d9b241a1ee0008d310a3a5390273
tree3be4586dd60143e132e210a1b4df904d0b3d39e6
parent685983f4decc5fa5700a0ab083859a2fe59acf10
i2c: qup: Fix error handling

Among the bus errors reported from the QUP_MASTER_STATUS register
only NACK is considered and transfer gets suspended, while
other errors are ignored. Correct this and suspend the transfer
for other errors as well. This avoids unnecessary 'timeouts' which
happens when waiting for events that would never happen when there
is already an error condition on the bus. Also the error handling
procedure should be the same for both NACK and other bus errors in
case of dma mode. So correct that as well.

Signed-off-by: Sricharan R <sricharan@codeaurora.org>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-qup.c