Current-Users archive

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

Re: Adding an interrupt locator to the GPIO, I2C and SPI buses

On Fri, Apr 19, 2013 at 10:01:46AM +0200, Manuel Bouyer wrote:
> That would be a problem if the GPIO module has less interrupt lines than
> interrupt sources (as in the AM335x: 32 GPIO per module but only
> 2 interrupt lines to the PIC): 
> the interrupt would then be shared and drivers would have to deal
> with that, eventually with callback functions to the gpio driver
> to know which pin really generated the interrupt.

I'd have thought the generic code ought to allow for interrupt
multiplexors - so the driver for a gpio block can attach its own
interrupt hander to the cpu (or whatever its interrupt line is
connected to) and then create a whole load of extra interrupt
sources that other drivers can attach to.

You really don't want a driver for a simple peripheral to have to
know exactly how the its own interrupt is connected up.


David Laight:

Home | Main Index | Thread Index | Old Index