[i2c] linux 2.6.20.2 patched from maxim, and i2c

Matt Gessner mgessner at gmail.com
Mon Apr 16 21:36:31 CEST 2007


Hi, all,

I've been doing a lot of looking, and haven't found the answer to this
question:

I have two devices on my AT91RM9200 TWI bus, tlv320 from TI.

How do I talk to these two devices?  Do I make /dev/i2c-0 and /dev/i2c-1?
That didn't work.  If I just open /dev/i2c-0, when I try to ioctl I2C_SLAVE
before each write, I get an illegal seek error (turns out I think it's
really -EBUSY returned by i2c-dev.c's ioctl function.

Or do I have to open only one at a time, set the I2C_SLAVE and do everything
I want in one shot, close the device, and then open the other one?

Thanks for your input,

Regards,

Matt Gessner
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.lm-sensors.org/pipermail/i2c/attachments/20070416/d4757aca/attachment.html 


More information about the i2c mailing list