summaryrefslogtreecommitdiff
path: root/drivers/platform/chrome
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2023-09-09 16:18:10 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-11-28 17:19:38 +0000
commit30d8ff067f87775aefce1ff7c037d186587822d7 (patch)
treec3b0a3f55c9f31eb37ac4684623418e6123e5897 /drivers/platform/chrome
parent6bb50965e3fc52d54d25d3ad7081530d584c30da (diff)
downloadlinux-30d8ff067f87775aefce1ff7c037d186587822d7.tar.gz
linux-30d8ff067f87775aefce1ff7c037d186587822d7.tar.bz2
linux-30d8ff067f87775aefce1ff7c037d186587822d7.zip
gpiolib: acpi: Add a ignore interrupt quirk for Peaq C1010
[ Upstream commit 6cc64f6173751d212c9833bde39e856b4f585a3e ] On the Peaq C1010 2-in-1 INT33FC:00 pin 3 is connected to a "dolby" button. At the ACPI level an _AEI event-handler is connected which sets an ACPI variable to 1 on both edges. This variable can be polled + cleared to 0 using WMI. Since the variable is set on both edges the WMI interface is pretty useless even when polling. So instead of writing a custom WMI driver for this the x86-android-tablets code instantiates a gpio-keys platform device for the "dolby" button. Add an ignore_interrupt quirk for INT33FC:00 pin 3 on the Peaq C1010, so that it is not seen as busy when the gpio-keys driver requests it. Note this replaces a hack in x86-android-tablets where it would call acpi_gpiochip_free_interrupts() on the INT33FC:00 GPIO controller. acpi_gpiochip_free_interrupts() is considered private (internal) gpiolib API so x86-android-tablets should stop using it. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com> Acked-by: Linus Walleij <linus.walleij@linaro.org> Acked-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Link: https://lore.kernel.org/r/20230909141816.58358-3-hdegoede@redhat.com Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/platform/chrome')
0 files changed, 0 insertions, 0 deletions