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

From: Wei Xu
Date: Fri Aug 16 2019 - 04:41:54 EST


Hi Linus,

On 2019/8/14 17:04, Linus Walleij wrote:
Hi Wei,

thanks for your patch!

This doesn't apply for my "devel" branch, can you rebase
on this:
https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio.git/log/?h=devel

We have moved some ACPI headers around recently.

Thanks to review!
I just sent out the v2 based on that.

On Mon, Aug 12, 2019 at 1:28 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.
Makes sense.

Fixes: 04ce935c6b2a ("gpio: pl061: Pass irqchip when adding gpiochip")
I doubt this is a regression since I haven't seen anyone use this
gpiochip with ACPI before.

Please rename the patch "gpio: pl061: Add ACPI support" unless
you can convince me it worked without changes before.

In the v2, I attached the log on QEMU v3.0.0 and Linux kernel v5.2.0-rc7 and
the pl061 driver can register ACPI interruption.
Based on that, I did not rename the patch but I am OK to rename it if you have
any doubt.

Please include some ACPI people on review of this. From
MAINTAINERS:
ACPI
M: "Rafael J. Wysocki" <rjw@xxxxxxxxxxxxx>
M: Len Brown <lenb@xxxxxxxxxx>
L: linux-acpi@xxxxxxxxxxxxxxx

I would also include Andy Shevchenko and Mika Westerberg for
the GPIO aspects.
Copied to all of them in the v2.
Thanks!

Best Regards,
Wei

Thanks!
Linus Walleij

.