Salut Jean-François, hi Guenter, Sorry for jumping in a little late, I am just back from vacation. On Thu, 9 May 2013 08:38:28 -0400, Jean-François Dagenais wrote: > On 2013-05-08, at 11:53 PM, Guenter Roeck wrote: > > Is one of the I2C adapter drivers your own ? If so, you can disable auto-detection > > in the adapter code by setting the adapter class to 0 (specifically, don't set it > > to I2C_CLASS_HWMON). You can do the same in the Kontron driver if you have the > > source (it is GPL so you should be able to find it). While not perfect, that should > > be better than disabling auto-detection in the affected chip drivers. > > That's great advice!! I will look into this, thanks! Guenter is right. You never have to disable auto-detection in the slave drivers (jc42 etc.) All these slave drivers do is claim "I _can_ do auto-detection", not "I _will_ do auto-detection." It's always up to the I2C adapter driver, whether auto-detection will happen or not. And it is disabled by default. So if you don't want it, just do not enable it in the bus driver. You can even set it per adapter, when the driver controls more than one adapter, and per bus segment, when multiplexing is taking place. Please also note: the jc42 driver now uses I2C_CLASS_SPD not I2C_CLASS_HWMON, because memory modules typically use a single chip for SPD EEPROM and JEDEC JC42.2 temperature sensor. Think of I2C_CLASS_SPD as "I2C class for memory modules." > > Note that the Kontron driver also sets I2C_CLASS_SPD, which means EEPROMs are > > auto-detected on address 0x50. > > Funny, I had to explicitly inject "I2C_BOARD_INFO("24c32", 0x50)" to see > Kontron's JIDA chip. The only EEPROMs which are auto-detected are SPD and EDID EEPROMs. The legacy eeprom driver is used for these. The 24C32 is a larger EEPROM, you must use the at24 driver for it and it doesn't support auto-detection (this is simply not possible.) In the long run, the legacy eeprom driver could be killed, but not before someone verifies that the at24 driver can take over completely, including the auto-detection feature, performance optimizations and corner case coverage. > > (...) > > Sure, it does work, I am just not sure what the benefits are of having two > > masters in this scenario. > > My thoughts exactly. I would have avoided it. Right now I am trying to improve > and existing design. It might be a little late now, but you may want to look into the PCA9541, for which Guenter has written a driver. -- Jean Delvare -- To unsubscribe from this list: send the line "unsubscribe linux-i2c" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html