pinctrl: mtk: Fix low level output voltage issue
authorZhiyong Tao <zhiyong.tao@mediatek.com>
Fri, 20 Nov 2020 09:30:58 +0000 (17:30 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 4 Dec 2020 08:43:51 +0000 (09:43 +0100)
commit517c3f5a8683c950efe17aa01e55efb3b0f2c770
tree7c3c5320bdbc057f0f0219ff553b0e6e52798a37
parent89cce2b3f247a434ee174ab6803698041df98014
pinctrl: mtk: Fix low level output voltage issue

This patch is used to fix low level output voltage issue.
A pin is changed from input pull-up to output high.
The Dout value of the pin is default as 0.
If we change the direction of the pin before the dout value of the pin,
It maybe produce a low level output voltage between "input pull-up" and
"output high".

Signed-off-by: Zhiyong Tao <zhiyong.tao@mediatek.com>
Link: https://lore.kernel.org/r/20201120093058.7248-2-zhiyong.tao@mediatek.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/mediatek/pinctrl-paris.c