David Brownell wrote: >> Because there isn't an actual IRQ for each pin, >> they need to be virtual. > > Actually, some of them could be "real" IRQs > instead of being dispatched through the GPIO > bank IRQ (which is a "real" IRQ, of course). > > But that gets messy. At one point it didn't > work at all in Linux. It should work now, but as > a rule you should expect IRQs associated with > DaVinci GPIOs to be dispatched through some > top-level bank IRQ ... most Linux platforms do > the same thing (so doing anything else is what > should be a surprise).
I suppose that's just my inexperience showing, then. It does seem confusing that there are two sets of values called "irq" used in the kernel code, one agreeing with the datasheet and one made-up token. I'm sure it's all straightforward when you're used to it, and really who is to say what's a "real" IRQ anyway, as the AINTC is a Davinci-specific thing as much as banked GPIO interrupts, the ARM only having two really hard interrupts. It made more sense as the dust settled. A shame it violates the principle of least surprise (to my eyes) but I see why and can't think of a good clean fix without another layer of abstraction. Shutting up. -- Jon Povey [email protected] Racelogic is a limited company registered in England. Registered number 2743719 . Registered Office Unit 10, Swan Business Centre, Osier Way, Buckingham, Bucks, MK18 1TB . The information contained in this electronic mail transmission is intended by Racelogic Ltd for the use of the named individual or entity to which it is directed and may contain information that is confidential or privileged. If you have received this electronic mail transmission in error, please delete it from your system without copying or forwarding it, and notify the sender of the error by reply email so that the sender's address records can be corrected. The views expressed by the sender of this communication do not necessarily represent those of Racelogic Ltd. Please note that Racelogic reserves the right to monitor e-mail communications passing through its network _______________________________________________ Davinci-linux-open-source mailing list [email protected] http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
