Skip to content
Commit 4671435c authored by Dai Okamura's avatar Dai Okamura Committed by Tom Rini
Browse files

i2c: uniphier-f: correct error recovery



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: default avatarDai Okamura <okamura.dai@socionext.com>
Acked-by: default avatarKunihiko Hayashi <hayashi.kunihiko@socionext.com>
Reviewed-by: default avatarHeiko Schocher <hs@denx.de>
parent f8548ce0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment