commit | 6befb51f349459c96ed64412070feda7472cf152 | [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 | ea966d24ef3a9f7f32712a518a07374f9ae43905 [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>