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

Tom Rini trini at konsulko.com
Sun Jan 1 14:54:13 CET 2023


On Sun, Jan 01, 2023 at 08:45:44AM +0100, Heiko Schocher wrote:
> Hello Dai Okamura,
> 
> On 09.12.22 12:38, 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>
> > ---
> >  drivers/i2c/i2c-uniphier-f.c | 4 ++--
> >  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> Reviewed-by: Heiko Schocher <hs at denx.de>
> 
> @Tom: Is it okay for you, to add this patch to 2023.01 release?
>       If yes, do you want to pick it up, or should I send a pull
>       request?

I'll pick it up, 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/20230101/774f5bb7/attachment.sig>


More information about the U-Boot mailing list