[RFC PATCH 0/3] If an IRQ is a GPIO, request and configure it
From: Linus Walleij <hidden>
Date: 2011-08-05 20:25:58
Also in:
alsa-devel, linux-mmc, linux-tegra, lkml
From: Linus Walleij <hidden>
Date: 2011-08-05 20:25:58
Also in:
alsa-devel, linux-mmc, linux-tegra, lkml
On Fri, Aug 5, 2011 at 12:30 PM, Ben Dooks [off-list ref] wrote:
On Fri, Aug 05, 2011 at 10:40:17AM +0100, Russell King - ARM Linux wrote:quoted
Trying to go from IRQ to GPIO is not a good idea - most of the IRQ <-> GPIO macros we have today are just plain broken. ?Many of them just add or subtract a constant, which means non-GPIO IRQs have an apparant GPIO number too. ?Couple this with the fact that all positive GPIO numbers are valid, and this is a recipe for wrong GPIOs getting used and GPIOs being requested for non-GPIO IRQs.Yes, and there's a pile without these defined/
And I'm piling a few patches *deleting* irq_to_gpio() from platforms that define but actually don't use it, like U300 and SA1100. Linus Walleij