]> git.baikalelectronics.ru Git - uboot.git/commit
i2c: i2c-gpio: Fix GPIO output
authorHarm Berntsen <harm.berntsen@nedap.com>
Sun, 29 Nov 2020 09:47:15 +0000 (09:47 +0000)
committerHeiko Schocher <hs@denx.de>
Sun, 21 Feb 2021 05:04:49 +0000 (06:04 +0100)
commitb4c8bf6e82603ff5ce71e9dc92fb45b0b9c2834f
tree3e5ed57f10ec7a7c0786bce9d2648df54efb389c
parent4816518eab718757bd60a25d8c4bcdf9178599f2
i2c: i2c-gpio: Fix GPIO output

The dm_gpio_set_dir_flags function cannot be used to update the
configuration of a GPIO pin because it does a bitwise OR with the
existing flags. Looks like commit 2cd53ece5d91 ("gpio: add function
_dm_gpio_set_dir_flags") has introduced this behaviour and the i2c-gpio
driver has been broken since.

Signed-off-by: Harm Berntsen <harm.berntsen@nedap.com>
CC: Heiko Schocher <hs@denx.de>
CC: Patrick Delaunay <patrick.delaunay@st.com>
drivers/i2c/i2c-gpio.c