diff options
author | 송은봉 <eunb.song@samsung.com> | 2013-04-17 17:40:17 -0400 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2013-04-19 14:28:56 -0400 |
commit | 2637e5fd232d421b680757944f613d4b1a36ae26 (patch) | |
tree | 609d4bf5c5ce3d5035c5a60ab60164102bd41db6 | |
parent | aaedeb6f198a44bdfa98a012cc3c07a48e126b16 (diff) |
i2c: octeon: Fix i2c fail problem when a process is terminated by a signal
I've been debugging the abnormal operation of i2c on octeon. If a process is
terminated by signal in the middle of i2c operation, next i2c read operation
which is done by another process was failed. So i changed to ignore signal in
the middle of i2c operation. After that the problem was not reproduced.
Signed-off-by: Eunbong Song <eunb.song@samsung.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
-rw-r--r-- | drivers/i2c/busses/i2c-octeon.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/i2c/busses/i2c-octeon.c b/drivers/i2c/busses/i2c-octeon.c index 935585ef4d39..b2e32596088d 100644 --- a/drivers/i2c/busses/i2c-octeon.c +++ b/drivers/i2c/busses/i2c-octeon.c | |||
@@ -183,7 +183,7 @@ static irqreturn_t octeon_i2c_isr(int irq, void *dev_id) | |||
183 | struct octeon_i2c *i2c = dev_id; | 183 | struct octeon_i2c *i2c = dev_id; |
184 | 184 | ||
185 | octeon_i2c_int_disable(i2c); | 185 | octeon_i2c_int_disable(i2c); |
186 | wake_up_interruptible(&i2c->queue); | 186 | wake_up(&i2c->queue); |
187 | 187 | ||
188 | return IRQ_HANDLED; | 188 | return IRQ_HANDLED; |
189 | } | 189 | } |
@@ -206,9 +206,9 @@ static int octeon_i2c_wait(struct octeon_i2c *i2c) | |||
206 | 206 | ||
207 | octeon_i2c_int_enable(i2c); | 207 | octeon_i2c_int_enable(i2c); |
208 | 208 | ||
209 | result = wait_event_interruptible_timeout(i2c->queue, | 209 | result = wait_event_timeout(i2c->queue, |
210 | octeon_i2c_test_iflg(i2c), | 210 | octeon_i2c_test_iflg(i2c), |
211 | i2c->adap.timeout); | 211 | i2c->adap.timeout); |
212 | 212 | ||
213 | octeon_i2c_int_disable(i2c); | 213 | octeon_i2c_int_disable(i2c); |
214 | 214 | ||