[PATCH] i2c: uniphier-f: correct error recovery

Tom Rini trini at konsulko.com
Fri Jan 6 17:52:04 CET 2023


On Fri, Dec 09, 2022 at 08:38:27PM +0900, Dai Okamura wrote:

> The uniphier i2c block can recognize some handshake errors.
> But driver handles all error detections as no error if no timeout.
> So this makes unrecoverable state.
> 
> This replaces the return values with the right ones to tell the i2c
> framework the errors:
> - EDEADLK for arbitration lost error
> - ENODATA for no answer error
> 
> Signed-off-by: Dai Okamura <okamura.dai at socionext.com>
> Acked-by: Kunihiko Hayashi <hayashi.kunihiko at socionext.com>
> Reviewed-by: Heiko Schocher <hs at denx.de>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20230106/e226a2ac/attachment.sig>


More information about the U-Boot mailing list