From: Heiko Schocher Date: Fri, 8 Apr 2011 14:24:09 +0000 (+0200) Subject: i2c, soft_i2c: deblock bus if switching to another i2c bus X-Git-Tag: v2011.06-rc1~121^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4bd5566ee89c906022215dc0064beb0d6c128060;p=pandora-u-boot.git 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: Heiko Schocher cc: Wolfgang Denk cc: Detlev Zundel cc: Valentin Longchamp cc: Holger Brunck Signed-off-by: Valentin Longchamp --- diff --git a/drivers/i2c/soft_i2c.c b/drivers/i2c/soft_i2c.c index 69b5f42205f..9b02e89e039 100644 --- a/drivers/i2c/soft_i2c.c +++ b/drivers/i2c/soft_i2c.c @@ -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