commit | f5989c12572c5f9fb82ddfd38b8b734399f5de89 | [log] [tgz] |
---|---|---|
author | Harm Berntsen <harm.berntsen@nedap.com> | Sun Nov 29 09:47:15 2020 +0000 |
committer | Heiko Schocher <hs@denx.de> | Sun Feb 21 06:04:49 2021 +0100 |
tree | 3e5ed57f10ec7a7c0786bce9d2648df54efb389c | |
parent | e7c6fc66689339bdfc8fbeb1f1a668d7546a37ab [diff] |
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>