hi,

we have tried to to configure a ti tfp410 via i2c in a linux
kernelmodule. We used the following function call to read data from the
ti ftp410:

value = i2c_smbus_read_byte_data(&client, 0x08);

This function should read 8bit data from the register 0x08. The i2c
client address is defined in client. The scope recording results say
that the write part of the command completed successfully. At that point
the i2c clock rests low until the i2c timeout brings the clock high. 

The following picture shows how the scope screen with C1 data and C2
clock looks like:
http://home.zhwin.ch/~gempealf/I2Cerror.gif

kernel log:
DaVinci I2C WARNING: i2c: cmd complete failed: complete = 0x0, icstr =
0x1414

function return value:
-1

8bit read and write work fine, i2c bus appears to work.
Has anyone experienced any problems like this?

We received the results described above with the original 2.6.10 kernel
from ti. When using a 2.6.19 kernel out of the git tree we got a similar
result. The difference was that the driver wasn't able to bring the
clock back to 1. It seems like there is no timeout...
What's wrong?



sam
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to