From: Alexandru M Stan Date: Wed, 1 Oct 2014 17:40:41 +0000 (-0700) Subject: i2c: rk3x: fix 0 length write transfers X-Git-Tag: fixes-for-v3.18-merge-window~42^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cf27020d2f253bac6457d6833b97141030f0122a;p=pandora-kernel.git i2c: rk3x: fix 0 length write transfers i2cdetect -q was broken (everything was a false positive, and no transfers were actually being sent over i2c). The way it works is by sending a 0 length write request and checking for NACK. This patch fixes the 0 length writes and actually sends them. Reported-by: Doug Anderson Signed-off-by: Alexandru M Stan Tested-by: Doug Anderson Tested-by: Max Schwarz Signed-off-by: Wolfram Sang Cc: stable@kernel.org --- Reading git-diff-tree failed