i2c: i2c-gpio: Fix GPIO output

Heiko Schocher hs at denx.de
Sun Feb 21 08:02:35 CET 2021


Hello Harm

On 29.11.20 10:47, Harm Berntsen wrote:
> 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 at nedap.com>
> CC: Heiko Schocher <hs at denx.de>
> CC: Patrick Delaunay <patrick.delaunay at st.com>
> ---
> 
>  drivers/i2c/i2c-gpio.c | 17 ++++++++++-------
>  1 file changed, 10 insertions(+), 7 deletions(-)

Applied to u-boot-i2c.git master

Thanks!

bye,
Heiko
-- 
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-52   Fax: +49-8142-66989-80   Email: hs at denx.de


More information about the U-Boot mailing list