How to create IRQ mappings in a GPIO driver that doesn't control its IRQ domain ?

Linus Walleij linus.walleij at linaro.org
Thu Jul 25 09:21:35 EDT 2013


On Thu, Jul 25, 2013 at 3:15 PM, Mark Brown <broonie at kernel.org> wrote:
> On Thu, Jul 25, 2013 at 11:45:33AM +0200, Laurent Pinchart wrote:
>
>> The number of interrupts can be pretty high (up to 58 in the worst case so
>> far), so an alternative would be to specify the interrupt-parent only, and
>> call irq_create_of_mapping() directly. What solution would you prefer ?
>
> Are the interrupts in a contiguous block in the controller so you can
> just pass around the controller and a base number?

That works with platform data and in-kernel structures, but AFAICT
device tree has no such "bulk" concept but expects you to list
each and every line individually in cases like this.

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list