Skip to content

Commit c6e0679

Browse files
superm1linusw
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Linus Walleij <[email protected]>
1 parent 287a344 commit c6e0679

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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)