[U-Boot] [PATCH 05/33] i2c: designware: Add error checking on init

Bin Meng bmeng.cn at gmail.com
Wed Feb 13 09:36:57 UTC 2019


On Tue, Jan 22, 2019 at 9:14 AM Simon Glass <sjg at chromium.org> wrote:
>
> At present this driver does not check whether it is able to actually
> communicate with the I2C controller. It prints a timeout message but still
> considers the probe to be successful.
>
> To fix this, add some checking that the init succeeds.
>
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
>
>  drivers/i2c/designware_i2c.c | 29 +++++++++++++++++++----------
>  1 file changed, 19 insertions(+), 10 deletions(-)
>

Reviewed-by: Bin Meng <bmeng.cn at gmail.com>


More information about the U-Boot mailing list