QUERY: How to handle sharing of interrupt between different peripherals.

Bill Gatliff bgat at billgatliff.com
Mon Mar 15 09:04:25 EDT 2010


Viresh KUMAR wrote:
> Second: Now UART, SDIO, SPI, I2S all have a common interrupt line, this is what
> we need to handle. For this IRQF_SHARED is a better way.
>   

No, chained handlers are the better way.

For example, your UARTs might be 16550-compatible. But you won't be able
to use the already well-tested 16550 driver if it doesn't already use
IRQF_SHARED.  I haven't looked to see if it does, but that would be just
one example...


b.g.

-- 
Bill Gatliff
Embedded systems training and consulting
http://billgatliff.com
bgat at billgatliff.com




More information about the linux-arm-kernel mailing list