aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/i2c/busses
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/i2c/busses')
-rw-r--r--drivers/i2c/busses/i2c-pxa.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-pxa.c b/drivers/i2c/busses/i2c-pxa.c
index fa8dd2c634d9..86128363a57f 100644
--- a/drivers/i2c/busses/i2c-pxa.c
+++ b/drivers/i2c/busses/i2c-pxa.c
@@ -770,8 +770,10 @@ static int i2c_pxa_do_xfer(struct pxa_i2c *i2c, struct i2c_msg *msg, int num)
770 */ 770 */
771 ret = i2c->msg_idx; 771 ret = i2c->msg_idx;
772 772
773 if (timeout == 0) 773 if (!timeout && i2c->msg_num) {
774 i2c_pxa_scream_blue_murder(i2c, "timeout"); 774 i2c_pxa_scream_blue_murder(i2c, "timeout");
775 ret = I2C_RETRY;
776 }
775 777
776 out: 778 out:
777 return ret; 779 return ret;