]> git.dujemihanovic.xyz Git - u-boot.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)
commit6befb51f349459c96ed64412070feda7472cf152
tree3e5ed57f10ec7a7c0786bce9d2648df54efb389c
parentea966d24ef3a9f7f32712a518a07374f9ae43905
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 788ea834124b ("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