]> www.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, 23 Oct 2006 18:18:43 +0000 (21:18 +0300)
committerTony Lindgren <tony@atomide.com>
Mon, 23 Oct 2006 18:18:43 +0000 (21:18 +0300)
commitf6a1a3e5d8928fb8093855c8da1a3dfd7805e229
tree965c7245046224b9860f780b54f05e98350a04bd
parentc2411bff6cd18e9a7675da5567e2a256565000b5
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