On Wed, Dec 11, 2013 at 4:26 AM, Laurent Pinchart <[email protected]> wrote:
> On non-DT platforms IRQ controllers associated with the GPIOs have a > fixed IRQ base value known at compile time. The sh-pfc driver translates > GPIO number to IRQ numbers using a hardcoded table. This mechanism > breaks on DT platforms, as the IRQ base values are dynamic in that case. > > Fix this by specifying IRQs associated with GPIOs in IRQ resources, > populated automatically from the device tree. When IRQ resources are > specified the driver requires one IRQ resource per GPIO able to generate > an interrupt, and uses the translation table to compute the IRQ resource > offset instead of the IRQ number. > > Cc: [email protected] > Signed-off-by: Laurent Pinchart <[email protected]> Make things much better and only use standard bindings so patch applied. Yours, Linus Walleij -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
