gpiolib: acpi: Add support to ignore programming an interrupt
authorMario Limonciello <mario.limonciello@amd.com>
Wed, 3 Aug 2022 04:24:59 +0000 (23:24 -0500)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 5 Sep 2022 10:15:56 +0000 (13:15 +0300)
commit6b6af7bd5718f4e45a9b930533aec1158387d552
tree8cc2000f90b99af9e427082cc0b66334f5edd00d
parent568035b01cfb107af8d2e4bd2fb9aea22cf5b868
gpiolib: acpi: Add support to ignore programming an interrupt

gpiolib-acpi already had support for ignoring a pin for wakeup, but
if an OEM configures a floating pin as an interrupt source then
stopping it from being a wakeup won't do much good to stop the
interrupt storm.

Add support for a module parameter and quirk infrastructure to
ignore interrupts as well.

Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/gpio/gpiolib-acpi.c