Skip to contentSkip to conversation

i2c:multibus:fix: Correct I2C_MULTI_BUS value when support for many buses is enabled

PATCH New Lukasz Majewski 2 participants 2 messages Aug 16, 2013 – Aug 20, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 i2c:multibus:fix: Correct I2C_MULTI_BUS value when support for many buses is enabled

The I2C_MULTI_BUS needs to be defined for correct I2C operation with many software emulated I2C controllers.

This fix restores correct value of the I2C_MULTI_BUS changed by following commit:

SHA1: 385c9ef5a7215b2b0c22836fee6c692dfc8559d7
i2c: add i2c_core and prepare for new multibus support

---
 include/i2c.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/i2c.h +1 -1
index d8674ef..8fd17d1 100644
@@ -390,7 +390,7 @@ unsigned int i2c_get_bus_speed(void);
 # if !defined(CONFIG_SYS_MAX_I2C_BUS)
 #  define CONFIG_SYS_MAX_I2C_BUS		2
 # endif
-# define I2C_MULTI_BUS				0
+# define I2C_MULTI_BUS				1
 #else
 # define CONFIG_SYS_MAX_I2C_BUS		1
 # define I2C_MULTI_BUS				0
Signature · 1 line
1.7.10.4
#1 lore raw

PATCH 1/1 i2c:multibus:fix: Correct I2C_MULTI_BUS value when support for many buses is enabled

Hello Lukasz,

Am 16.08.2013 15:31, schrieb Lukasz Majewski:

Quoted 6 lines

The I2C_MULTI_BUS needs to be defined for correct I2C operation with many software emulated I2C controllers.

This fix restores correct value of the I2C_MULTI_BUS changed by following commit:

Quoted 8 lines

SHA1: 385c9ef5a7215b2b0c22836fee6c692dfc8559d7
i2c: add i2c_core and prepare for new multibus support

---
  include/i2c.h |    2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

Applied to u-boot-i2c.git, thanks.

bye,
Heiko

Signature · 2 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany