diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2017-11-10 15:40:33 +0200 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2017-11-30 10:53:52 +0100 |
commit | 1b2ca32ab0b8311da84fe692522266b32ad4315e (patch) | |
tree | 013f02dc39d22c86eed547a7b0d25a867c3f811d /include/linux/acpi.h | |
parent | ce0929d222f8cb18a66611642dc0661d633ce192 (diff) | |
download | linux-stable-1b2ca32ab0b8311da84fe692522266b32ad4315e.tar.gz linux-stable-1b2ca32ab0b8311da84fe692522266b32ad4315e.tar.bz2 linux-stable-1b2ca32ab0b8311da84fe692522266b32ad4315e.zip |
gpiolib: acpi: Introduce NO_RESTRICTION quirk
Allow to relax IoRestriction for certain cases.
One of the use case is incorrectly cooked ACPI table where interrupt pin is
defined with GpioIo() macro with IoRestrictionOutputOnly.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'include/linux/acpi.h')
-rw-r--r-- | include/linux/acpi.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/acpi.h b/include/linux/acpi.h index 25fe77fccea0..06b6eb775115 100644 --- a/include/linux/acpi.h +++ b/include/linux/acpi.h @@ -978,6 +978,10 @@ struct acpi_gpio_mapping { const char *name; const struct acpi_gpio_params *data; unsigned int size; + +/* Ignore IoRestriction field */ +#define ACPI_GPIO_QUIRK_NO_IO_RESTRICTION BIT(0) + unsigned int quirks; }; |