[PATCH v2 1/2] i2c: i2c-gpio: Correctly handle new {sda,scl}-gpios bindings

Heiko Schocher hs at denx.de
Mon Aug 7 05:54:33 CEST 2023


Hello Chris,

On 26.07.23 01:13, Chris Packham wrote:
> gpio_request_list_by_name() returns the number of gpios requested.
> Notably it swallows the underlying -ENOENT when the "gpios" property
> does not exist.
> 
> Update the i2c-gpio driver to check for ret == 0 before trying the new
> sda-gpios/scl-gpios properties.
> 
> Signed-off-by: Chris Packham <judge.packham at gmail.com>
> ---
> This was originally sent as a single patch[1]. I've rolled it into this
> series as the board change is dependent on it.
> 
> [1] - https://lore.kernel.org/u-boot/20230720023107.1184147-1-judge.packham@gmail.com/
> 
> (no changes since v1)
> 
>  drivers/i2c/i2c-gpio.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Heiko Schocher <hs at denx.de>

bye,
Heiko
-- 
DENX Software Engineering GmbH,      Managing Director: Erika Unter
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