mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
i2c: pxa: Return I2C_RETRY when timeout in pio mode
In case of timeout in pio mode of operation return I2C_RETRY. This behavior will be same as interrupt mode of operation. Signed-off-by: Shouming Wang <[email protected]> [[email protected]: Updated changelog] Signed-off-by: Vaibhav Hiremath <[email protected]> Acked-by: Robert Jarzmik <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
This commit is contained in:
parent
e087b4272e
commit
8bd75bd303
1 changed files with 3 additions and 1 deletions
|
|
@ -745,8 +745,10 @@ static int i2c_pxa_do_pio_xfer(struct pxa_i2c *i2c,
|
|||
ret = i2c->msg_idx;
|
||||
|
||||
out:
|
||||
if (timeout == 0)
|
||||
if (timeout == 0) {
|
||||
i2c_pxa_scream_blue_murder(i2c, "timeout");
|
||||
ret = I2C_RETRY;
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue