]> pilppa.org Git - linux-2.6-omap-h63xx.git/commit
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)
commite2528fa357daade563360e46a1723faf29fb6f6b
treea91b6bbb2a5d1519d9953ec466cb9e59c849acbb
parent67b5093314f9daffe5b50d2a0643e5557317d432
ARM: OMAP: I2C: 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>
drivers/i2c/busses/i2c-omap.c