[PATCH] ARM: imx: imx8mp: fix enable_i2c_clk

sbabic at denx.de sbabic at denx.de
Thu Mar 30 17:23:13 CEST 2023


> In order for i2c_num==4 and 5 to stay invalid for non-imx8mp SOCs, the
> i2c_ccgr[] array must be sized by the number of initializers present,
> not with a hard-coded 6 which would implicitly initialize the last two
> elements with zeroes.
> Also, the bounds check is off-by-one.
> Fixes: c92c3a4453b8 "ARM: imx: imx8mp: Enable support for i2c5 and i2c6 on i.MX8MP"
> Signed-off-by: Rasmus Villemoes <rasmus.villemoes at prevas.dk>
Applied to u-boot-imx, next, thanks !

Best regards,
Stefano Babic

-- 
=====================================================================
DENX Software Engineering GmbH,        Managing Director: Erika Unter  
HRB 165235 Munich,   Office: Kirchenstr.5, 82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================


More information about the U-Boot mailing list