summaryrefslogtreecommitdiff
path: root/drivers/i2c/busses/i2c-viapro.c
diff options
context:
space:
mode:
authorSricharan R <sricharan@codeaurora.org>2016-06-10 18:08:21 (GMT)
committerWolfram Sang <wsa@the-dreams.de>2016-06-18 16:25:32 (GMT)
commitfbf9921f8b35d9b241a1ee0008d310a3a5390273 (patch)
tree3be4586dd60143e132e210a1b4df904d0b3d39e6 /drivers/i2c/busses/i2c-viapro.c
parent685983f4decc5fa5700a0ab083859a2fe59acf10 (diff)
downloadlinux-fbf9921f8b35d9b241a1ee0008d310a3a5390273.tar.xz
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>
Diffstat (limited to 'drivers/i2c/busses/i2c-viapro.c')
0 files changed, 0 insertions, 0 deletions