diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2017-11-10 08:40:33 -0500 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2017-11-30 04:53:52 -0500 |
commit | 1b2ca32ab0b8311da84fe692522266b32ad4315e (patch) | |
tree | 013f02dc39d22c86eed547a7b0d25a867c3f811d /include/linux/acpi.h | |
parent | ce0929d222f8cb18a66611642dc0661d633ce192 (diff) |
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 { | |||
978 | const char *name; | 978 | const char *name; |
979 | const struct acpi_gpio_params *data; | 979 | const struct acpi_gpio_params *data; |
980 | unsigned int size; | 980 | unsigned int size; |
981 | |||
982 | /* Ignore IoRestriction field */ | ||
983 | #define ACPI_GPIO_QUIRK_NO_IO_RESTRICTION BIT(0) | ||
984 | |||
981 | unsigned int quirks; | 985 | unsigned int quirks; |
982 | }; | 986 | }; |
983 | 987 | ||