i2c: xiic: Do not continue in case of errors in Rx
authorShubhrajyoti Datta <shubhraj@xilinx.com>
Wed, 17 Jun 2015 15:18:19 +0000 (20:48 +0530)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 10 Aug 2015 06:37:33 +0000 (08:37 +0200)
commit6b0c8dc3104253a5e4b2ec923eeb48cece0abcb9
tree7d6241ea81471c64e6c34e7457b3da1ddbf3db42
parent7f9906bd7f7211327ba58657caa216608f9c93de
i2c: xiic: Do not continue in case of errors in Rx

In case of error conditions like Arbitration lost or NACK lets signal
the waiting process.

Handle error cases in the Rx path

Signed-off-by: Shubhrajyoti Datta <shubhraj@xilinx.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-xiic.c