Re: [PATCH v3] gpio: pl061: Fix the issue failed to register the ACPI interrtupion

From: Linus Walleij
Date: Tue Aug 20 2019 - 04:02:11 EST


On Mon, Aug 19, 2019 at 3:29 PM Wei Xu <xuwei5@xxxxxxxxxxxxx> wrote:

> Invoke acpi_gpiochip_request_interrupts after the acpi data has been
> attached to the pl061 acpi node to register interruption.
>
> Otherwise it will be failed to register interruption for the ACPI case.
> Because in the gpiochip_add_data_with_key, acpi_gpiochip_add is invoked
> after gpiochip_add_irqchip but at that time the acpi data has not been
> attached yet.

We need to fix this problem in gpiochip_add_data_with_key() instead.

Yours,
Linus Walleij