[PATCH V2 2/2] drivers: i2c: qup: Fix error handling

Wolfram Sang wsa at the-dreams.de
Fri May 13 04:48:23 PDT 2016


On Fri, May 06, 2016 at 05:01:14PM +0530, Sricharan R wrote:
> 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 unnessecary 'timeouts' which
> happens when waiting for events that would never happen when there
> is already an error condition on the bus.
> 
> Signed-off-by: Sricharan R <sricharan at codeaurora.org>
> Reviewed-by: Andy Gross <andy.gross at linaro.org>

Please check Documentation/i2c/fault-codes for proper fault codes.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20160513/ddc2df3f/attachment-0001.sig>


More information about the linux-arm-kernel mailing list