gpio: pca953x: Override IRQ for one of the expanders on Galileo Gen 2
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 5 Jun 2020 13:40:34 +0000 (16:40 +0300)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Tue, 16 Jun 2020 09:22:20 +0000 (11:22 +0200)
commitba8c90c6184784b397807b72403656085ac2f8c1
treee559c4bec46987abf60f8131dd55bcd0cbf53004
parent064c73afe7385de99e5b2785b88c83dc5d84403b
gpio: pca953x: Override IRQ for one of the expanders on Galileo Gen 2

ACPI table on Intel Galileo Gen 2 has wrong pin number for IRQ resource
of one of the I²C GPIO expanders. Since we know what that number is and
luckily have GPIO bases fixed for SoC's controllers, we may use a simple
DMI quirk to match the platform and retrieve GpioInt() pin on it for
the expander in question.

Mika suggested the way to avoid a quirk in the GPIO ACPI library and
here is the second, almost rewritten version of it.

Fixes: f32517bf1ae0 ("gpio: pca953x: support ACPI devices found on Galileo Gen2")
Depends-on: 25e3ef894eef ("gpio: acpi: Split out acpi_gpio_get_irq_resource() helper")
Suggested-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
drivers/gpio/gpio-pca953x.c