]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit49ea677cbb20a1275537e091023acff73108a84f
treee559c4bec46987abf60f8131dd55bcd0cbf53004
parentd01932b2c9c9b19d280b518aed8017ec61d81ac4
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: b7fc9636c4db ("gpio: pca953x: support ACPI devices found on Galileo Gen2")
Depends-on: 8bb7677226e0 ("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