* [PATCH] I2C: Call request_irq with IRQF_DISABLED
@ 2009-03-05 13:54 Ari Kauppi
2009-03-05 19:35 ` Felipe Balbi
0 siblings, 1 reply; 4+ messages in thread
From: Ari Kauppi @ 2009-03-05 13:54 UTC (permalink / raw)
To: linux-i2c; +Cc: linux-omap
I have observed some Spurious IRQ's for I2C1 when all kernel hacking options
(and thus LOCKDEP) are disabled.
Applying Richard Woodruff's 'I2C bug fixes for L-O and L-Z' seems to help
but IRQF_DISABLED is needed for proper behaviour.
Signed-off-by: Ari Kauppi <Ext-Ari.Kauppi@nokia.com>
---
drivers/i2c/busses/i2c-omap.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c
index 0c3ed41..18af43f 100644
--- a/drivers/i2c/busses/i2c-omap.c
+++ b/drivers/i2c/busses/i2c-omap.c
@@ -847,7 +847,7 @@ omap_i2c_probe(struct platform_device *pdev)
omap_i2c_init(dev);
isr = (dev->rev < OMAP_I2C_REV_2) ? omap_i2c_rev1_isr : omap_i2c_isr;
- r = request_irq(dev->irq, isr, 0, pdev->name, dev);
+ r = request_irq(dev->irq, isr, IRQF_DISABLED, pdev->name, dev);
if (r) {
dev_err(dev->dev, "failure requesting irq %i\n", dev->irq);
--
1.5.6.5
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH] I2C: Call request_irq with IRQF_DISABLED
2009-03-05 13:54 [PATCH] I2C: Call request_irq with IRQF_DISABLED Ari Kauppi
@ 2009-03-05 19:35 ` Felipe Balbi
2009-03-05 20:03 ` Jean Delvare
0 siblings, 1 reply; 4+ messages in thread
From: Felipe Balbi @ 2009-03-05 19:35 UTC (permalink / raw)
To: Ari Kauppi; +Cc: linux-i2c, linux-omap
On Thu, Mar 05, 2009 at 03:54:24PM +0200, Ari Kauppi wrote:
> I have observed some Spurious IRQ's for I2C1 when all kernel hacking options
> (and thus LOCKDEP) are disabled.
>
> Applying Richard Woodruff's 'I2C bug fixes for L-O and L-Z' seems to help
> but IRQF_DISABLED is needed for proper behaviour.
>
> Signed-off-by: Ari Kauppi <Ext-Ari.Kauppi@nokia.com>
This driver should be in sync with mainline, the only missing commit is
commit 3487568e15df6e133f5f55779dec614dbeb68a99
Author: Eero Nurkkala <ext-eero.nurkkala@nokia.com>
Date: Tue Nov 25 13:03:46 2008 +0200
i2c: i2c-omap: Fix BUFSTAT_REG reading
The number of bytes to be received is read from wrong
place with all OMAPs with highspeed I2C support,
which involves a FIFO and BUFSTAT_REG. It is the 6
bits starting from the bit 8 in the BUFSTAT_REG
that indicate this amount of bytes to be read.
Moreover, only the 6 LSB:s are relevant for the
TXSTAT field.
Signed-off-by: Eero Nurkkala <ext-eero.nurkkala@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
That and this one should be going via linux-i2c mainling list. Could you
send Eero's patch and yours to Jean Delvare (i2c maintainer) ? Please
keep linux-omap in the loop.
That said, this makes sense and avoids that we get interrupts while
handling a previous interrupt.
Acked-by: Felipe Balbi <felipe.balbi@nokia.com>
--
balbi
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH] I2C: Call request_irq with IRQF_DISABLED
2009-03-05 19:35 ` Felipe Balbi
@ 2009-03-05 20:03 ` Jean Delvare
2009-03-05 20:15 ` Felipe Balbi
0 siblings, 1 reply; 4+ messages in thread
From: Jean Delvare @ 2009-03-05 20:03 UTC (permalink / raw)
To: me; +Cc: Ari Kauppi, linux-i2c, linux-omap, Ben Dooks
On Thu, 5 Mar 2009 21:35:06 +0200, Felipe Balbi wrote:
> That and this one should be going via linux-i2c mainling list. Could you
> send Eero's patch and yours to Jean Delvare (i2c maintainer) ? Please
> keep linux-omap in the loop.
Come on, folks, how many times will I have to repeat myself and what
MAINTAINERS says? Patches to i2c-omap and every other i2c driver for
embedded platforms go to Ben Dooks (Cc'd), not me.
--
Jean Delvare
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] I2C: Call request_irq with IRQF_DISABLED
2009-03-05 20:03 ` Jean Delvare
@ 2009-03-05 20:15 ` Felipe Balbi
0 siblings, 0 replies; 4+ messages in thread
From: Felipe Balbi @ 2009-03-05 20:15 UTC (permalink / raw)
To: Jean Delvare; +Cc: me, Ari Kauppi, linux-i2c, linux-omap, Ben Dooks
On Thu, Mar 05, 2009 at 09:03:35PM +0100, Jean Delvare wrote:
> On Thu, 5 Mar 2009 21:35:06 +0200, Felipe Balbi wrote:
> > That and this one should be going via linux-i2c mainling list. Could you
> > send Eero's patch and yours to Jean Delvare (i2c maintainer) ? Please
> > keep linux-omap in the loop.
>
> Come on, folks, how many times will I have to repeat myself and what
> MAINTAINERS says? Patches to i2c-omap and every other i2c driver for
> embedded platforms go to Ben Dooks (Cc'd), not me.
that was my bad, I didn't see Ben was already in Cc.
--
balbi
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-03-05 20:15 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-05 13:54 [PATCH] I2C: Call request_irq with IRQF_DISABLED Ari Kauppi
2009-03-05 19:35 ` Felipe Balbi
2009-03-05 20:03 ` Jean Delvare
2009-03-05 20:15 ` Felipe Balbi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox