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

Heiko Schocher hs at denx.de
Tue Jan 22 05:05:33 UTC 2019


Hello Simon,

Am 22.01.2019 um 02:12 schrieb Simon Glass:
> 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: Heiko Schocher <hs at enx.de>

Thanks!

bye,
Heiko
-- 
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
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