projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e087b42
)
i2c: pxa: Return I2C_RETRY when timeout in pio mode
author
Shouming Wang
<
[email protected]
>
Tue, 14 Jul 2015 07:36:42 +0000
(13:06 +0530)
committer
Wolfram Sang
<
[email protected]
>
Mon, 10 Aug 2015 06:37:30 +0000
(08:37 +0200)
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]
>
drivers/i2c/busses/i2c-pxa.c
patch
|
blob
|
history
diff --git
a/drivers/i2c/busses/i2c-pxa.c
b/drivers/i2c/busses/i2c-pxa.c
index 023e59fda6503ebad999e0f700fae528c0294a91..632008f24098912c966c7d2407ff97b944279633 100644
(file)
--- a/
drivers/i2c/busses/i2c-pxa.c
+++ b/
drivers/i2c/busses/i2c-pxa.c
@@
-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;
}