gpiolib: acpi: Add a ignore wakeup quirk for Clevo NL5xRU
authorMario Limonciello <mario.limonciello@amd.com>
Mon, 16 Jan 2023 19:37:02 +0000 (13:37 -0600)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Wed, 18 Jan 2023 14:29:16 +0000 (15:29 +0100)
commit4cb786180dfb5258ff3111181b5e4ecb1d4a297b
tree7f1373b3b861e5320f47febf3afee9dea2939bb9
parent0e3b175f079247f0d40d2ab695999c309d3a7498
gpiolib: acpi: Add a ignore wakeup quirk for Clevo NL5xRU

commit 1796f808e4bb ("HID: i2c-hid: acpi: Stop setting wakeup_capable")
changed the policy such that I2C touchpads may be able to wake up the
system by default if the system is configured as such.

However on Clevo NL5xRU there is a mistake in the ACPI tables that the
TP_ATTN# signal connected to GPIO 9 is configured as ActiveLow and level
triggered but connected to a pull up. As soon as the system suspends the
touchpad loses power and then the system wakes up.

To avoid this problem, introduce a quirk for this model that will prevent
the wakeup capability for being set for GPIO 9.

Fixes: 1796f808e4bb ("HID: i2c-hid: acpi: Stop setting wakeup_capable")
Reported-by: Werner Sembach <wse@tuxedocomputers.com>
Link: https://gitlab.freedesktop.org/drm/amd/-/issues/1722#note_1720627
Co-developed-by: Werner Sembach <wse@tuxedocomputers.com>
Signed-off-by: Werner Sembach <wse@tuxedocomputers.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
drivers/gpio/gpiolib-acpi.c