pinctrl: intel: Allow requesting pins which are in ACPI mode as GPIOs
authorMika Westerberg <mika.westerberg@linux.intel.com>
Wed, 21 Oct 2015 10:08:44 +0000 (13:08 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 27 Oct 2015 12:30:56 +0000 (13:30 +0100)
commit4341e8a5458f10cb7265167061fa06ebf3a3a903
tree095e0adf905c25f199493e4240244149fd698788
parent193b40c8258f781d8dc395909b2971472aad6796
pinctrl: intel: Allow requesting pins which are in ACPI mode as GPIOs

Reserved for ACPI actually means that in such case the GPIO hardware will
not update the interrupt status register (GPI_IS) even if the pin is
configured to trigger an interrupt. It will update GPI_GPE_STS instead and
does not trigger an interrupt.

Allow using such pins as GPIOs, only prevent their usage as interrupts.

We also rename function intel_pad_reserved_for_acpi() to be
intel_pad_acpi_mode() which reflects the actual meaning better.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/intel/pinctrl-intel.c