]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Oct 2023 09:59:03 +0000 (11:59 +0200)
commit76d04c339508b74b26ff92928bda1b203f26b3d9
tree73c63818fca6a64302bd11b50dc6adf8fef629e4
parent4b129e3964b313ba15186f0e6cf83062eca21564
gpio: vf610: set value before the direction to avoid a glitch

commit fc363413ef8ea842ae7a99e3caf5465dafdd3a49 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpio/gpio-vf610.c