]> git.dujemihanovic.xyz Git - u-boot.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)
commitba5b9203f55bae1ef3566a84648cad46c6949270
tree633bc11163c39407b9cd1c19179250e777cfa226
parent26659d426548d1c395ef878c3b820e53a6e3b346
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