Skip to content
Commit a74cdfd7 authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Paul Gortmaker
Browse files

gpio: pca953x: Override IRQ for one of the expanders on Galileo Gen 2

commit ba8c90c6 upstream.

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: f32517bf ("gpio: pca953x: support ACPI devices found on Galileo Gen2")
Depends-on: 25e3ef89

 ("gpio: acpi: Split out acpi_gpio_get_irq_resource() helper")
Suggested-by: default avatarMika Westerberg <mika.westerberg@linux.intel.com>
Reviewed-by: default avatarMika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: default avatarBartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: default avatarPaul Gortmaker <paul.gortmaker@windriver.com>
parent 75315dbf
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment