]> 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 10:03:15 +0000 (12:03 +0200)
commit14a1a7beb3d3e60c3571b9b18d84b1374e36d3a4
treebc76a1868ea7de8cd81018049c26d117d40ccc70
parent7ec224d98070dc162d528d199899165ea8c87300
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