ARM: OMAP: I2C: Do not use interruptible wait call in omap_i2c_xfer_msg
authorJarkko Nikula <jarkko.nikula@nokia.com>
Mon, 9 Oct 2006 12:04:57 +0000 (15:04 +0300)
committerJuha Yrjola <juha.yrjola@solidboot.com>
Mon, 9 Oct 2006 12:41:49 +0000 (15:41 +0300)
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>

No differences found