On Sun, May 11, 2014 at 11:25 PM, Maxime Ripard <maxime.ripard@xxxxxxxxxxxxxxxxxx> wrote: > What I did so far is having a single domain, with the same handler > registered for all the interrupts, and the various interrupts from the > various banks just being at a different offsets in the domain. > > Basically, something like that: > http://code.bulix.org/ym3zuv-86191 > > Do you know if it would be possible to use the generic gpiolib > behaviour in such a case? Basically the helpers are for the simple case where every pin can fire an independent interrupt. Since there is just one single irqdomain for the entire chip, the helpers require that all mappings go through the same domain. If having several domains or other split-up results in more elegant code, then code another solution locally, because we just want to cover the generic cases, the special cases will still be special. Unless you see some really elegant way forward of course... always choose the most elegand refactoring if you can. Yours, Linus Walleij -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html