]> git.baikalelectronics.ru Git - uboot.git/commit
i2c: rockchip: De-initialize the bus after start bit failure
authorOndrej Jirman <megi@xff.cz>
Thu, 25 May 2023 12:18:17 +0000 (14:18 +0200)
committerHeiko Schocher <hs@denx.de>
Mon, 5 Jun 2023 04:52:46 +0000 (06:52 +0200)
commit048418a56b70fb9d68e83f1dbc8f7792c96044cc
tree633bc11163c39407b9cd1c19179250e777cfa226
parent41c64618c57fee0b68c980de87a556a36e599ab6
i2c: rockchip: De-initialize the bus after start bit failure

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@xff.cz>
Cc: Heiko Schocher <hs@denx.de>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Reviewed-by: Heiko Schocher <hs@denx.de>
drivers/i2c/rk_i2c.c