提交 c6e0679b 编写于 作者: M Mario Limonciello 提交者: Linus Walleij

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: NMario Limonciello <mario.limonciello@amd.com>
Link: https://lore.kernel.org/r/20230121134812.16637-2-mario.limonciello@amd.comSigned-off-by: NLinus Walleij <linus.walleij@linaro.org>
上级 287a344a
...@@ -365,6 +365,7 @@ static void amd_gpio_dbg_show(struct seq_file *s, struct gpio_chip *gc) ...@@ -365,6 +365,7 @@ static void amd_gpio_dbg_show(struct seq_file *s, struct gpio_chip *gc)
} else { } else {
debounce_enable = " ∅"; debounce_enable = " ∅";
time = 0;
} }
snprintf(debounce_value, sizeof(debounce_value), "%u", time * unit); snprintf(debounce_value, sizeof(debounce_value), "%u", time * unit);
seq_printf(s, "debounce %s (🕑 %sus)| ", debounce_enable, debounce_value); seq_printf(s, "debounce %s (🕑 %sus)| ", debounce_enable, debounce_value);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册