The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* I2C: Fix i2c fail problem when a process is terminated by a signal on octeon in 3.8
@ 2013-02-26 21:08 송은봉
  2013-03-22 10:43 ` Wolfram Sang
  0 siblings, 1 reply; 6+ messages in thread
From: 송은봉 @ 2013-02-26 21:08 UTC (permalink / raw)
  To: linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=euc-kr, Size: 1200 bytes --]


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>

diff -up drivers/i2c/busses/i2c-octeon.c{.orig,}
--- drivers/i2c/busses/i2c-octeon.c.orig 2013-02-21 08:09:03.168018843 -0800
+++ drivers/i2c/busses/i2c-octeon.c 2013-02-21 08:09:38.344018898 -0800
@@ -183,7 +183,7 @@ static irqreturn_t octeon_i2c_isr(int ir
  struct octeon_i2c *i2c = dev_id;
 
  octeon_i2c_int_disable(i2c);
- wake_up_interruptible(&i2c->queue);
+ wake_up(&i2c->queue);
 
  return IRQ_HANDLED;
 }
@@ -206,7 +206,7 @@ static int octeon_i2c_wait(struct octeon
 
  octeon_i2c_int_enable(i2c);
 
- result = wait_event_interruptible_timeout(i2c->queue,
+ result = wait_event_timeout(i2c->queue,
         octeon_i2c_test_iflg(i2c),
         i2c->adap.timeout);

ÿôèº{.nÇ+‰·Ÿ®‰­†+%ŠËÿ±éݶ\x17¥Šwÿº{.nÇ+‰·¥Š{±þG«éÿŠ{ayº\x1dʇڙë,j\a­¢f£¢·hšïêÿ‘êçz_è®\x03(­éšŽŠÝ¢j"ú\x1a¶^[m§ÿÿ¾\a«þG«éÿ¢¸?™¨è­Ú&£ø§~á¶iO•æ¬z·švØ^\x14\x04\x1a¶^[m§ÿÿÃ\fÿ¶ìÿ¢¸?–I¥

^ permalink raw reply	[flat|nested] 6+ messages in thread
[parent not found: <EC.72.13994.FE02D215@epcpsbgx4.samsung.com>]
[parent not found: <88.A5.02716.F6CB6215@epcpsbge3.samsung.com>]

end of thread, other threads:[~2013-03-22 10:43 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-26 21:08 I2C: Fix i2c fail problem when a process is terminated by a signal on octeon in 3.8 송은봉
2013-03-22 10:43 ` Wolfram Sang
     [not found] <EC.72.13994.FE02D215@epcpsbgx4.samsung.com>
2013-02-26 23:07 ` David Daney
     [not found] <88.A5.02716.F6CB6215@epcpsbge3.samsung.com>
2013-02-26 10:02 ` Jiri Kosina
2013-02-26 11:07   ` Wolfram Sang
2013-02-28  4:38     ` anish singh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox