]> git.baikalelectronics.ru Git - kernel.git/commit
i2c-omap: Do not use interruptible wait call in omap_i2c_xfer_msg
authorJarkko Nikula <jarkko.nikula@nokia.com>
Fri, 21 Nov 2008 21:39:45 +0000 (13:39 -0800)
committerTony Lindgren <tony@atomide.com>
Fri, 21 Nov 2008 21:39:45 +0000 (13:39 -0800)
commit54f85aaf7d3c6a65e1d69881b8b1b4052360fee4
tree7e16c8dcaba34764b9e60e42c437a068c5941601
parent858b524a546a127f74b5f1e07e15ab5fbd50189f
i2c-omap: Do not use interruptible wait call in omap_i2c_xfer_msg

If there is a signal pending and wait_for_completion_interruptible_timeout
terminates with -ERESTARTSYS, we return and disable the i2c clocks in
omap_i2c_xfer.

If we terminate before sending last i2c message with a stop condition, the
bus remains busy and we are not able to send new messages into bus with
successive omap_i2c_xfer calls. Therefore a pending signal is not caught
here and we return only because of timeout or i2c error.

Signed-off-by: Jarkko Nikula <jarkko.nikula@nokia.com>
Signed-off-by: Juha Yrjola <juha.yrjola@solidboot.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/i2c/busses/i2c-omap.c