]> git.karo-electronics.de Git - karo-tx-linux.git/commit
i2c: imx: fix imx driver to work though signal is pending
authorOskar Schirmer <oskar@scara.com>
Thu, 23 Feb 2012 12:19:11 +0000 (12:19 +0000)
committerWolfram Sang <w.sang@pengutronix.de>
Wed, 29 Feb 2012 19:21:24 +0000 (20:21 +0100)
commitbb79a0798d7c430f012f2f906fd7873f8976bc89
tree88dd7787d99fedb483a980cc593ac13d373619c6
parent104522806a7d9d47c34f425dee2bcd7f1ee5613e
i2c: imx: fix imx driver to work though signal is pending

Interrupt a test application for I2C based mc13xxx driven
touch panel, SIGINT, causes open event file descriptor to be
closed, which in turn causes I2C activity to mask PMIC local
interrupts. This eventually ends up in i2c_imx_bus_busy to
wait for some busy flag to toggle, but while waiting it would
find a signal pending and break. The final symptom is the
device is not closed down cleanly and thus not reopenable.

Do without check for pending signal.

Signed-off-by: Oskar Schirmer <oskar@scara.com>
Acked-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
drivers/i2c/busses/i2c-imx.c