i2c: stub: Add support for SMBus block commands
authorGuenter Roeck <linux@roeck-us.net>
Thu, 17 Jul 2014 16:56:03 +0000 (09:56 -0700)
committerWolfram Sang <wsa@the-dreams.de>
Thu, 17 Jul 2014 17:11:35 +0000 (19:11 +0200)
commit6f16b75a41abbbd11c4c8b7c62eb66604879b981
tree6183b1ff9454533e8c4bd14809749052eb1fea3c
parent281ec367bff42304e0dc5cbc8d267ce9251478b7
i2c: stub: Add support for SMBus block commands

SMBus block commands are different to I2C block commands since
the returned data is not normally accessible with byte or word
commands on other command offsets. Add linked list of 'block'
commands to support those commands.

Access mechanism is quite simple: Block commands must be written
before they can be read. Subsequent writes can be partial. Block
read commands always return the number of bytes associated with
the longest previous write.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Jean Delvare <jdelvare@suse.de>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Documentation/i2c/i2c-stub
drivers/i2c/i2c-stub.c
This page took 0.02777 seconds and 5 git commands to generate.