From: Daniel Kurtz Date: Fri, 30 Mar 2012 11:46:40 +0000 (+0800) Subject: drm/i915/intel_i2c: use INDEX cycles for i2c read transactions X-Git-Tag: v3.5-rc1~83^2~81^2~80 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=56f9eac05489912ac0165ffc0ebff0f8588f77d2;p=pandora-kernel.git drm/i915/intel_i2c: use INDEX cycles for i2c read transactions It is very common for an i2c device to require a small 1 or 2 byte write followed by a read. For example, when reading from an i2c EEPROM it is common to write and address, offset or index followed by a reading some values. The i915 gmbus controller provides a special "INDEX" cycle for performing such a small write followed by a read. The INDEX can be either one or two bytes long. The advantage of using such a cycle is that the CPU has slightly less work to do once the read with INDEX cycle is started. Signed-off-by: Daniel Kurtz Reviewed-by: Chris Wilson Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed