Skip to content
Snippets Groups Projects
Commit 6b0c8dc3 authored by Shubhrajyoti Datta's avatar Shubhrajyoti Datta Committed by Wolfram Sang
Browse files

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: default avatarShubhrajyoti Datta <shubhraj@xilinx.com>
Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
parent 7f9906bd
No related branches found
No related tags found
No related merge requests found
...@@ -399,6 +399,8 @@ static irqreturn_t xiic_process(int irq, void *dev_id) ...@@ -399,6 +399,8 @@ static irqreturn_t xiic_process(int irq, void *dev_id)
*/ */
xiic_reinit(i2c); xiic_reinit(i2c);
if (i2c->rx_msg)
xiic_wakeup(i2c, STATE_ERROR);
if (i2c->tx_msg) if (i2c->tx_msg)
xiic_wakeup(i2c, STATE_ERROR); xiic_wakeup(i2c, STATE_ERROR);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment