[U-Boot] [PATCH] cmd_i2c: quit I2C commands immediately on error

Simon Glass sjg at chromium.org
Fri Feb 6 06:45:20 CET 2015


On 4 February 2015 at 21:50, Masahiro Yamada <yamada.m at jp.panasonic.com> wrote:
> If the i2c driver returns an error status, error out immediately.
> Continuing the loop just results in printing error messages
> again and again.
>
> Signed-off-by: Masahiro Yamada <yamada.m at jp.panasonic.com>
> Cc: Simon Glass <sjg at chromium.org>
> Cc: Heiko Schocher <hs at denx.de>
> ---
>
>  common/cmd_i2c.c | 26 +++++++++++++-------------
>  1 file changed, 13 insertions(+), 13 deletions(-)

In any case the result of continuing is not likely to be correct.

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list