Skip to content
Snippets Groups Projects
Commit 4bd5566e authored by Heiko Schocher's avatar Heiko Schocher
Browse files

i2c, soft_i2c: deblock bus if switching to another i2c bus


Deblock i2c bus when switching to another i2c bus, if using
i2c_set_bus_num().

Signed-off-by: default avatarHeiko Schocher <hs@denx.de>
cc: Wolfgang Denk <wd@denx.de>
cc: Detlev Zundel <dzu@denx.de>
cc: Valentin Longchamp <valentin.longchamp@keymile.com>
cc: Holger Brunck <holger.brunck@keymile.com>
Signed-off-by: default avatarValentin Longchamp <valentin.longchamp@keymile.com>
parent c649dda5
No related branches found
No related tags found
No related merge requests found
......@@ -286,6 +286,7 @@ int i2c_set_bus_num(unsigned int bus)
int ret;
ret = i2x_mux_select_mux(bus);
i2c_init_board();
if (ret == 0)
i2c_bus_num = bus;
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment