OSDN Git Service

pinctrl: amd: Only use special debounce behavior for GPIO 0
authorMario Limonciello <mario.limonciello@amd.com>
Wed, 5 Jul 2023 13:30:02 +0000 (08:30 -0500)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 12 Jul 2023 22:04:02 +0000 (00:04 +0200)
commit0d5ace1a07f7e846d0f6d972af60d05515599d0b
tree31fb5d33561e41fd731b7525b253798aa0d6297b
parent06c2afb862f9da8dc5efa4b6076a0e48c3fbaaa5
pinctrl: amd: Only use special debounce behavior for GPIO 0

It's uncommon to use debounce on any other pin, but technically
we should only set debounce to 0 when working off GPIO0.

Cc: stable@vger.kernel.org
Tested-by: Jan Visser <starquake@linuxeverywhere.org>
Fixes: 968ab9261627 ("pinctrl: amd: Detect internal GPIO0 debounce handling")
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Link: https://lore.kernel.org/r/20230705133005.577-2-mario.limonciello@amd.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-amd.c