[PATCH] i2c: designware_i2c: Don't warn if no reset controller

Heiko Schocher hs at denx.de
Sat Nov 28 16:12:52 CET 2020


Hello Simon,

Am 09.11.20 um 15:12 schrieb Simon Glass:
> At present if CONFIG_RESET is not enabled, this code shows a warning:
> 
>   designware_i2c_ofdata_to_platdata() i2c_designware_pci i2c2 at 16,0:
> 	Can't get reset: -524
> 
> Avoid this by checking if reset is supported, first.
> 
> Fixes: 622597dee4f ("i2c: designware: add reset ctrl to driver")
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
> 
>  drivers/i2c/designware_i2c.c | 8 +++++---
>  1 file changed, 5 insertions(+), 3 deletions(-)

Applied to u-boot-i2c.git

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