Skip to content

Commit c6e0679

Browse files
superm1Linus Walleij
authored andcommitted
pinctrl: amd: Fix debug output for debounce time
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>
1 parent 287a344 commit c6e0679

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/pinctrl/pinctrl-amd.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,7 @@ static void amd_gpio_dbg_show(struct seq_file *s, struct gpio_chip *gc)
365365

366366
} else {
367367
debounce_enable = " ∅";
368+
time = 0;
368369
}
369370
snprintf(debounce_value, sizeof(debounce_value), "%u", time * unit);
370371
seq_printf(s, "debounce %s (🕑 %sus)| ", debounce_enable, debounce_value);

0 commit comments

Comments
 (0)