projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd5006d
)
i2c: st: Fix return in case of arbitration lost
author
Maxime COQUELIN
<maxime.coquelin@st.com>
Fri, 28 Feb 2014 12:52:56 +0000
(13:52 +0100)
committer
Wolfram Sang
<wsa@the-dreams.de>
Mon, 10 Mar 2014 16:35:08 +0000
(17:35 +0100)
This patch fixes the error returned to the i2c_transfer function
to -EAGAIN in case of arbitratin lost, so that the retry mechanism
can be used.
Signed-off-by: Maxime Coquelin <maxime.coquelin@st.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-st.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/i2c/busses/i2c-st.c
b/drivers/i2c/busses/i2c-st.c
index 9cf715d695515e61fde96d27afe4c650f55c4095..872016196ef3fcc4714651b484f84d67766d429c 100644
(file)
--- a/
drivers/i2c/busses/i2c-st.c
+++ b/
drivers/i2c/busses/i2c-st.c
@@
-574,7
+574,7
@@
static irqreturn_t st_i2c_isr_thread(int irq, void *data)
writel_relaxed(it, i2c_dev->base + SSC_IEN);
st_i2c_set_bits(i2c_dev->base + SSC_I2C, SSC_I2C_STOPG);
- c->result = -E
IO
;
+ c->result = -E
AGAIN
;
break;
default: