gpio: intel_gpio: Clear tx state bit when setting output
authorWolfgang Wallner <wolfgang.wallner@br-automation.com>
Mon, 3 Feb 2020 10:38:05 +0000 (11:38 +0100)
committerBin Meng <bmeng.cn@gmail.com>
Tue, 4 Feb 2020 04:54:55 +0000 (12:54 +0800)
commit28c626804dee51dd89a5a400e0cb663ee9cc77ed
treedf6cb026f9ef29c88af6bcccdcccee526133aef0
parentb840c395c64fd2dfadb96717bb6898a3069239a0
gpio: intel_gpio: Clear tx state bit when setting output

Add missing 'PAD_CFG0_TX_STATE' to the clear mask for pcr_clrsetbits32().
Otherwise this bit cannot be cleared again after it has been set once.

Signed-off-by: Wolfgang Wallner <wolfgang.wallner@br-automation.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
drivers/gpio/intel_gpio.c