On Sat, Nov 04, 2017 at 03:11:19AM +0000, Jonathan Cameron wrote: > On Fri, 3 Nov 2017 15:03:36 +0200 > Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx> wrote: > > > The commit 0f0796509c07 > > > > ("iio: remove gpio interrupt probing from drivers that use a single > > interrupt") > > > > removed custom IRQ assignment for the drivers which are enumerated via > > ACPI or OF. Unfortunately, some ACPI tables have IRQ line defined as > > GpioIo() resource and thus automatic IRQ allocation will fail. > > I'll ask the obvious question - is this allowed under the ACPI spec? Yes, it is perfectly fine. > > Partially revert the commit 0f0796509c07 to restore original > > behaviour. > > > > Signed-off-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx> > > I really don't like scattering fixes for broken ACPI tables through > drivers... Is there really no better solution to this? This is not about broken ACPI tables. We just currently have "convenience" stuff in the kernel that translates trivial things like a single ACPI GpioInt() resource directly to a device interrupt. If the table has multiple GpioInt()s or uses GpioIo() then it is up to the driver to handle device specific details. > On patches like this best to pull in ACPI and GPIO on the cc list. > > Also cc'd Mika who made the original change to support gpioint. The patch looks fine to me, Acked-by: Mika Westerberg <mika.westerberg@xxxxxxxxxxxxxxx> -- 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