Re: [PATCH 08/12] i2c: pxa: enable/disable irq across message xfer

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On Thursday 28 May 2015 06:47 PM, Russell King - ARM Linux wrote:
On Thu, May 28, 2015 at 06:33:40PM +0530, Vaibhav Hiremath wrote:
In order to avoid "spurious irq" caused by CP polling mode,
enable irq at the entry of i2c_pxa_xfer() fn and disable it
again before exit.

NAK.

It's really not nice for drivers to disable a potentially shared interrupt.
If the interrupt is shared, you disable the interrupt for other users of
that interrupt as well.  See:

commit c66dc529194be374556d166ee7ddb84a7d1d302b
Author: Sebastian Andrzej Siewior <bigeasy@xxxxxxxxxxxxx>
Date:   Wed Feb 23 12:38:18 2011 +0100

     i2c-pxa2xx: add support for shared IRQ handler

     Sodaville has three of them on a single IRQ. IRQF_DISABLED is removed
     because it is a NOP allready and scheduled for removal.

     Signed-off-by: Sebastian Andrzej Siewior <bigeasy@xxxxxxxxxxxxx>
     Signed-off-by: Dirk Brandewie <dirk.brandewie@xxxxxxxxx>
     Signed-off-by: Ben Dooks <ben-linux@xxxxxxxxx>

So you're breaking Sodaville.


Got it.

I will drop this patch from the series.

Before submitting next version, will wait for review on other patches.

Thanks,
Vaibhav

--
To unsubscribe from this list: send the line "unsubscribe linux-i2c" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux GPIO]     [Linux SPI]     [Linux Hardward Monitoring]     [LM Sensors]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux