From: Guenter Roeck Date: Thu, 17 Jul 2014 16:56:03 +0000 (-0700) Subject: i2c: stub: Add support for SMBus block commands X-Git-Tag: omap-for-v3.17/fixes-against-rc2~107^2~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6f16b75a41abbbd11c4c8b7c62eb66604879b981;p=pandora-kernel.git 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 Reviewed-by: Jean Delvare Signed-off-by: Wolfram Sang --- Reading git-diff-tree failed