diff options
author | Hans de Goede <[email protected]> | 2023-09-09 16:18:09 +0200 |
---|---|---|
committer | Hans de Goede <[email protected]> | 2023-09-11 13:28:25 +0200 |
commit | 5fb36a8c87d9e99a88d6e9128f1f9ec62f8545f1 (patch) | |
tree | 3d8b6a1c9271ddf2f74aae0b5490552f661dc2df /net/lapb/lapb_subr.c | |
parent | 0bb80ecc33a8fb5a682236443c1e740d5c917d1d (diff) |
gpiolib: acpi: Check if a GPIO is listed in ignore_interrupt earlier
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.
Signed-off-by: Hans de Goede <[email protected]>
Reviewed-by: Andy Shevchenko <[email protected]>
Reviewed-by: Mika Westerberg <[email protected]>
Acked-by: Linus Walleij <[email protected]>
Acked-by: Bartosz Golaszewski <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions