PNP / ACPI: add support for GpioInt resource type
authorJagadish Krishnamoorthy <jagadish.krishnamoorthy@intel.com>
Tue, 23 May 2017 17:03:25 +0000 (20:03 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 29 May 2017 09:25:52 +0000 (11:25 +0200)
commit2a56e9195dfb59548cc8b32e8e8d0eef4b65f7eb
treef5d6a9a2f65908727102a065e9e41284c2e4ab3c
parent25e3ef894eef419ee239da42edc6c1f8a4f1cfb5
PNP / ACPI: add support for GpioInt resource type

The PNP ACPI driver parses ACPI interrupt resource but not
GpioInt resource. When the firmware passes GpioInt resource
for IRQ the PNP ACPI driver ignores it and hence the interrupt for
the particular driver will not work.
One such example is 8042 keyboard which uses PNP driver for obtaining
the interrupt resource. On Intel Braswell project GpioInt is used
instead of interrupt resource and the keyboard driver fails to
register interrupt.
Fix the issue by parsing GpioInt resource type.

Signed-off-by: Jagadish Krishnamoorthy <jagadish.krishnamoorthy@intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
[Fixed a parenthesis coding style thing]
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pnp/pnpacpi/rsparser.c