[PATCH] i2c: rockchip: De-initialize the bus after start bit failure

Heiko Schocher hs at denx.de
Mon Jun 5 09:36:07 CEST 2023


Hello Ondrej,

On 25.05.23 14:18, Ondřej Jirman wrote:
> From: Ondrej Jirman <megi at xff.cz>
> 
> Failure can happen when i2c is used without initializing pinctrl properly,
> which U-Boot happily allows in SPL. Without this fix, further I2C access would
> fail, even after proper pinctrl initialization.
> 
> Signed-off-by: Ondrej Jirman <megi at xff.cz>
> Cc: Heiko Schocher <hs at denx.de>
> ---
>  drivers/i2c/rk_i2c.c | 7 ++++---
>  1 file changed, 4 insertions(+), 3 deletions(-)

Applied to u-boot-i2c.git master

Thanks!

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