gpio: vf610: set value before the direction to avoid a glitch
authorHaibo Chen <haibo.chen@nxp.com>
Wed, 18 Oct 2023 09:00:17 +0000 (11:00 +0200)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Wed, 18 Oct 2023 09:01:08 +0000 (11:01 +0200)
commitfc363413ef8ea842ae7a99e3caf5465dafdd3a49
treef081d9853f1b33c21ff4dde77ce0c5c48366fe3e
parent430232619791e7de95191f2cd8ebaa4c380d17d0
gpio: vf610: set value before the direction to avoid a glitch

We found a glitch when configuring the pad as output high. To avoid this
glitch, move the data value setting before direction config in the
function vf610_gpio_direction_output().

Fixes: 659d8a62311f ("gpio: vf610: add imx7ulp support")
Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
[Bartosz: tweak the commit message]
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
drivers/gpio/gpio-vf610.c