On Sat, Sep 9, 2023 at 5:18 PM Hans de Goede <hdegoede@xxxxxxxxxx> wrote: > > In some cases where a broken AEI is present for a GPIO and the GPIO > is listed in the ignore_interrupt list to avoid the broken event > handler, the kernel may want to use the GPIO for another purpose. > > Before this change trying to use such a GPIO for another purpose would > fail, because the ignore_interrupt list was only checked after > the acpi_request_own_gpiod() call, causing the GPIO to already be > claimed even though it is listed in the ignore_interrupt list. > > Fix this by moving the ignore_interrupt list to above > the acpi_request_own_gpiod() call. Not sure if we need a Fixes tag, either way this makes sense, Reviewed-by: Andy Shevchenko <andy.shevchenko@xxxxxxxxx> -- With Best Regards, Andy Shevchenko