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

Heiko Schocher hs at denx.de
Sun Jan 1 08:45:44 CET 2023


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?

Thanks!

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