projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
287a344
)
pinctrl: amd: Fix debug output for debounce time
author
Mario Limonciello
<mario.limonciello@amd.com>
Sat, 21 Jan 2023 13:48:10 +0000
(07:48 -0600)
committer
Linus Walleij
<linus.walleij@linaro.org>
Fri, 27 Jan 2023 12:40:29 +0000
(13:40 +0100)
If one GPIO has debounce enabled but future GPIOs in the list don't
have debounce the time never gets reset and shows wrong value.
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Link:
https://lore.kernel.org/r/20230121134812.16637-2-mario.limonciello@amd.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-amd.c
patch
|
blob
|
history
diff --git
a/drivers/pinctrl/pinctrl-amd.c
b/drivers/pinctrl/pinctrl-amd.c
index 9bc6e3922e78e8d5cc6caecf653b7c5cdc165717..32c3edaf903854b0c45ca5e43e9cc8c1432ba155 100644
(file)
--- a/
drivers/pinctrl/pinctrl-amd.c
+++ b/
drivers/pinctrl/pinctrl-amd.c
@@
-365,6
+365,7
@@
static void amd_gpio_dbg_show(struct seq_file *s, struct gpio_chip *gc)
} else {
debounce_enable = " ∅";
+ time = 0;
}
snprintf(debounce_value, sizeof(debounce_value), "%u", time * unit);
seq_printf(s, "debounce %s (🕑 %sus)| ", debounce_enable, debounce_value);