]> git.baikalelectronics.ru Git - uboot.git/commit
board: gw_ventana: gsc: fix GSC read/write functions
authorTim Harvey <tharvey@gateworks.com>
Thu, 24 Mar 2022 15:32:00 +0000 (08:32 -0700)
committerTom Rini <trini@konsulko.com>
Thu, 31 Mar 2022 12:27:51 +0000 (08:27 -0400)
commit5836366a4de0d8c3db6b3acf47727d3c37786338
treeec17dfaa9fb3431312dae1d6841bd2f7aea08489
parent02ac62d82fd98b38feccf22296e31d2916de169d
board: gw_ventana: gsc: fix GSC read/write functions

commit 220b1bd35079 ("dm: gpio: Correct use of -ENODEV in drivers")
changed the return code for an I2C NAK from -ENODEV to -EREMOTEIO.

Update the gsc_i2c_read and gsc_i2c_write functions for this change
to properly retry the transaction on a NAK meaning the GSC is busy.

Fixes: 220b1bd35079 ("dm: gpio: Correct use of -ENODEV in drivers")
Signed-off-by: Tim Harvey <tharvey@gateworks.com>
Reviewed-by: Fabio Estevam <festevam@denx.de>
board/gateworks/gw_ventana/gsc.c