]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
gpiolib: acpi: Convert ACPI value of debounce to microseconds
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 7 Mar 2022 11:56:23 +0000 (13:56 +0200)
committerPaolo Pisati <paolo.pisati@canonical.com>
Wed, 23 Mar 2022 10:49:00 +0000 (11:49 +0100)
commit8df71708d22d5b5c3e786356f746ccc240bf34b7
treee0d3b652f76b4f95ef30f42de565d219961507a1
parent201ea0fe53e08ad9a922ca350f2059f665e8b34f
gpiolib: acpi: Convert ACPI value of debounce to microseconds

BugLink: https://bugs.launchpad.net/bugs/1966056
[ Upstream commit 660c619b9d7ccd28648ee3766cdbe94ec7b27402 ]

It appears that GPIO ACPI library uses ACPI debounce values directly.
However, the GPIO library APIs expect the debounce timeout to be in
microseconds.

Convert ACPI value of debounce to microseconds.

While at it, document this detail where it is appropriate.

BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=215664
Reported-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Fixes: 8dcb7a15a585 ("gpiolib: acpi: Take into account debounce settings")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Tested-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/gpio/gpiolib-acpi.c
drivers/gpio/gpiolib.c