pinctrl: npcm7xx: prevent glitch when setting the GPIO to output high
authorTomer Maimon <tmaimon77@gmail.com>
Wed, 15 Nov 2023 21:12:09 +0000 (13:12 -0800)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 24 Nov 2023 10:22:11 +0000 (11:22 +0100)
commita6059c8603bc90746bf0df930ff78013b4c789fe
tree399b58833b2f56bba6d041ed4972284eba8adc96
parent5a002bf206508169dd9d8c002d6326e51f53b42c
pinctrl: npcm7xx: prevent glitch when setting the GPIO to output high

Enable GPIO output after setting the output value to prevent a glitch
when pinctrl driver sets gpio pin to output high and the pin is in
the default state (high->low->high).

Signed-off-by: Tomer Maimon <tmaimon77@gmail.com>
Signed-off-by: William A. Kennington III <william@wkennington.com>
Link: https://lore.kernel.org/r/20231115211209.1683449-1-william@wkennington.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c