Commit 194fa7ff authored by Wolfram Sang's avatar Wolfram Sang

i2c: exynos5: use proper errno for timeout

Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
parent 2fd36c55
...@@ -457,7 +457,7 @@ static irqreturn_t exynos5_i2c_irq(int irqno, void *dev_id) ...@@ -457,7 +457,7 @@ static irqreturn_t exynos5_i2c_irq(int irqno, void *dev_id)
goto stop; goto stop;
} else if (int_status & HSI2C_INT_TIMEOUT) { } else if (int_status & HSI2C_INT_TIMEOUT) {
dev_dbg(i2c->dev, "Accessing device timed out\n"); dev_dbg(i2c->dev, "Accessing device timed out\n");
i2c->state = -EAGAIN; i2c->state = -ETIMEDOUT;
goto stop; goto stop;
} }
} else if (int_status & HSI2C_INT_I2C) { } else if (int_status & HSI2C_INT_I2C) {
...@@ -476,7 +476,7 @@ static irqreturn_t exynos5_i2c_irq(int irqno, void *dev_id) ...@@ -476,7 +476,7 @@ static irqreturn_t exynos5_i2c_irq(int irqno, void *dev_id)
goto stop; goto stop;
} else if (trans_status & HSI2C_TIMEOUT_AUTO) { } else if (trans_status & HSI2C_TIMEOUT_AUTO) {
dev_dbg(i2c->dev, "Accessing device timed out\n"); dev_dbg(i2c->dev, "Accessing device timed out\n");
i2c->state = -EAGAIN; i2c->state = -ETIMEDOUT;
goto stop; goto stop;
} else if (trans_status & HSI2C_TRANS_DONE) { } else if (trans_status & HSI2C_TRANS_DONE) {
i2c->trans_done = 1; i2c->trans_done = 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment