* [PATCH] i2c/imx: fix imx driver to work though signal is pending
@ 2012-02-23 12:19 Oskar Schirmer
[not found] ` <1329999551-32171-1-git-send-email-oskar-fYPSZ7JpQqsAvxtiuMwx3w@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Oskar Schirmer @ 2012-02-23 12:19 UTC (permalink / raw)
To: Ben Dooks
Cc: Wolfram Sang, Sascha Hauer, linux-i2c, linux-kernel,
Darius Augulis, Oskar Schirmer
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>
---
drivers/i2c/busses/i2c-imx.c | 5 -----
1 files changed, 0 insertions(+), 5 deletions(-)
diff --git a/drivers/i2c/busses/i2c-imx.c b/drivers/i2c/busses/i2c-imx.c
index 58832e5..124d9c5 100644
--- a/drivers/i2c/busses/i2c-imx.c
+++ b/drivers/i2c/busses/i2c-imx.c
@@ -149,11 +149,6 @@ static int i2c_imx_bus_busy(struct imx_i2c_struct *i2c_imx, int for_busy)
break;
if (!for_busy && !(temp & I2SR_IBB))
break;
- if (signal_pending(current)) {
- dev_dbg(&i2c_imx->adapter.dev,
- "<%s> I2C Interrupted\n", __func__);
- return -EINTR;
- }
if (time_after(jiffies, orig_jiffies + msecs_to_jiffies(500))) {
dev_dbg(&i2c_imx->adapter.dev,
"<%s> I2C bus is busy\n", __func__);
--
1.7.5.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] i2c/imx: fix imx driver to work though signal is pending
[not found] ` <1329999551-32171-1-git-send-email-oskar-fYPSZ7JpQqsAvxtiuMwx3w@public.gmane.org>
@ 2012-02-29 19:06 ` Wolfram Sang
0 siblings, 0 replies; 2+ messages in thread
From: Wolfram Sang @ 2012-02-29 19:06 UTC (permalink / raw)
To: Oskar Schirmer
Cc: Ben Dooks, Sascha Hauer, linux-i2c-u79uwXL29TY76Z2rM5mHXA,
linux-kernel-u79uwXL29TY76Z2rM5mHXA, Darius Augulis,
Marc Kleine-Budde
[-- Attachment #1: Type: text/plain, Size: 1072 bytes --]
On Thu, Feb 23, 2012 at 12:19:11PM +0000, Oskar Schirmer wrote:
> 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-fYPSZ7JpQqsAvxtiuMwx3w@public.gmane.org>
Thanks. Picked to my for-3.4 branch. I'd like to have some more test coverage,
then we can send it back via a stable-release. If you think it should go into
3.3 directly, please let me know.
Oh, and it got acked by Marc Kleine-Budde via phone :)
Regards,
Wolfram
--
Pengutronix e.K. | Wolfram Sang |
Industrial Linux Solutions | http://www.pengutronix.de/ |
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-02-29 19:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-23 12:19 [PATCH] i2c/imx: fix imx driver to work though signal is pending Oskar Schirmer
[not found] ` <1329999551-32171-1-git-send-email-oskar-fYPSZ7JpQqsAvxtiuMwx3w@public.gmane.org>
2012-02-29 19:06 ` Wolfram Sang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).