[i2c] nvidia patch in linuxbios

Jean Delvare khali at linux-fr.org
Thu Mar 1 08:53:34 CET 2007


Hi Hans-Frieder,

On Wed, 28 Feb 2007 00:05:44 +0100, Hans-Frieder Vogt wrote:
> From all what I can see, the nforce2/3/4/5... SMBus controllers
> follow the ACPI register model, and therefore this is also
> currently reflected in the i2c-nforce2 code. I have not tried to
> use Send Byte so far (I may overwrite something :-), but on

For most chips, Send Byte isn't an actual write, it only sets an
internal pointer for a subsequent Receive Byte.

An easy way to ensure that the i2c bus driver implementation is correct
is to use the different modes of i2cdump on an EEPROM. Try modes "b",
"c", "W" and, if supported, "i", and compare the outputs. You should
have 3 (resp. 4) times the exact same output. Mode "b" tests Read Byte,
mode "c" tests Send Byte and Receive Byte, mode "W" tests Read Word and
mode "i" tests I2C Block Read.

-- 
Jean Delvare



More information about the i2c mailing list