Files
u-boot/drivers
Wojciech Szamocki ec7b49c410 i2c: designware_i2c Return -ETIMEDOUT for timeout errors
Change the return value for timeout errors in i2c-designware from 1 to
-ETIMEDOUT. Returning errors as negative values is standard practice in the
u-boot, which enhances error handling consistency across the codebase.

The current behavior can lead to silent errors when functions check for
negative return values to identify errors. For example, in
`dm_i2c_reg_read` from i2c-uclass.c, a timeout results in an uninitialized
value being returned, potentially causing unexpected behavior.

Cc: Heiko Schocher <hs@denx.de>
Cc: Tom Rini <trini@konsulko.com>
Cc: Wojciech Szamocki <wojciech.szamocki@nokia.com>
Signed-off-by: Wojciech Szamocki <wojciech.szamocki@nokia.com>
Reviewed-by: Heiko Schocher <hs@denx.de>
2025-06-02 11:02:58 +02:00
..
2025-04-11 12:16:44 -06:00
2025-04-11 12:16:44 -06:00
2025-05-03 16:55:32 -03:00
2025-05-22 09:01:51 -03:00
2025-04-11 12:16:44 -06:00
2025-04-11 12:16:44 -06:00
2025-04-11 12:16:44 -06:00
2025-04-11 12:16:44 -06:00
2023-11-07 14:50:51 -05:00
2025-04-11 12:16:44 -06:00
2025-04-10 20:55:53 -06:00
2024-04-26 08:28:35 +03:00
2025-04-11 12:16:44 -06:00
2025-04-11 12:16:44 -06:00