]> git.baikalelectronics.ru Git - kernel.git/commit
gpiolib: acpi: Add ACPI_GPIO_QUIRK_ABSOLUTE_NUMBER quirk
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 25 Feb 2021 16:33:18 +0000 (18:33 +0200)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Mon, 8 Mar 2021 10:59:17 +0000 (11:59 +0100)
commit9e6661a8dbcb9309a74ff39df1c5272f85479e9d
tree4fec5cd62cf2471020dcfd2f0f773c2d9096f0a4
parent160a5cd703ea2422c4d4670f20d27a5e003a20f5
gpiolib: acpi: Add ACPI_GPIO_QUIRK_ABSOLUTE_NUMBER quirk

On some systems the ACPI tables has wrong pin number and instead of
having a relative one it provides an absolute one in the global GPIO
number space.

Add ACPI_GPIO_QUIRK_ABSOLUTE_NUMBER quirk to cope with such cases.

Fixes: 3baa152321aa ("gpio: pca953x: Override IRQ for one of the expanders on Galileo Gen 2")
Depends-on: d7470b18ab8a ("gpio: dwapb: Convert driver to using the GPIO-lib-based IRQ-chip")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib-acpi.c
include/linux/gpio/consumer.h