Loading
gpio: vf610: set value before the direction to avoid a glitch
stable inclusion from stable-v5.10.199 commit 7e29dadf265d28dfc7a0ae3a1069678b642ee2e6 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I9AWJ5 Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=7e29dadf265d28dfc7a0ae3a1069678b642ee2e6 -------------------------------- commit fc363413 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: 659d8a62 ("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> Signed-off-by:
sanglipeng <sanglipeng1@jd.com>