i2c/ smbus question



Hi !

Can you confirm the difference between writing a block of data with
I2C_SMBUS_BLOCK_DATA vs I2C_SMBUS_I2C_BLOCK_DATA on the wire ? It's my
understanding that the former will actually send the lenght byte on the
wire before the data while the later won't, though they both send a
subaddress.

I'm completely rewriting the powermac i2c support (consolidating all
busses behind a low level layer that I need to use in circumstances
where the linux i2c layer isn't useable, and with a single driver in
drivers/i2c/busses/* replacing i2c-keywest.c and i2c-pmac-smu.c) and I
think I'm hitting a problem where i2c-keywest didn't implement
I2C_SMBUS_BLOCK_DATA properly (didn't send the lenght byte) and some
drivers (our sound drivers) rely on that behaviour (that's fine, I can
fix them too, I just want to make sure I understand what the semantic
should be).

I'm a bit surprised that there seem to be no wrapper for writing with
I2C_SMBUS_I2C_BLOCK_DATA, only for reading, in i2c-core.c since it
appears to me that it's the most common one, at least for all devices
I've dealt with so far (mostly sound & clock chips in addition to
sensors)...

Cheers,
Ben.


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: WERNER
    ... Getting some promise from a recruiter in writing isn;t going to do you much ... It's like getting your girfriend to promise sex 5 times per week ... can speak to enough current drivers to find out how they are being treated. ...
    (misc.transport.trucking)
  • Re: Ping A Teamster
    ... as most of the older drivers, save one or two, and seen the writing on ... After writing all that.....I did find this on the Teamster web ... a Union calling to change a ...
    (misc.transport.trucking)
  • Device for building USB host drivers
    ... I have tons of queries on writing a USB Flash drivers on Windows CE 5.0 ... for my school project. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Stream I/O driver XXX_Close race condition?
    ... It's about writing robust ... drivers and understanding vulnerabilities in the system. ... Using CloseHandle to force WaitCommEvent to exit is a typical case. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Bad performance of HTTPServletResponse at Tomcat
    ... >When I make a load test of 20 users, I see a bottleneck on the writing ... >of the response. ... >The lenght of the message up to 50K, ...
    (comp.lang.java.programmer)