From: Christophe Ricard <christophe.ricard@xxxxxxxxx> When a gpio is used as an interrupt, the irq_type was not available for device driver. It is not align with devicetree probing. Signed-off-by: Christophe Ricard <christophe-h.ricard@xxxxxx> --- drivers/gpio/gpiolib-acpi.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/gpio/gpiolib-acpi.c b/drivers/gpio/gpiolib-acpi.c index 16a7b68..8cc3c53 100644 --- a/drivers/gpio/gpiolib-acpi.c +++ b/drivers/gpio/gpiolib-acpi.c @@ -418,9 +418,12 @@ static int acpi_find_gpio(struct acpi_resource *ares, void *data) * GpioIo is used then the only way to set the flag is * to use _DSD "gpios" property. */ - if (lookup->info.gpioint) + if (lookup->info.gpioint) { lookup->info.active_low = agpio->polarity == ACPI_ACTIVE_LOW; + irq_set_irq_type(gpiod_to_irq(lookup->desc), + acpi_get_irq_type(agpio->triggering, agpio->polarity)); + } } return 1; -- 2.5.0 -- To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html