From: Mike Ditto Date: Tue, 16 Dec 2008 20:17:09 +0000 (+0000) Subject: i2c-cpm: Detect and report NAK right away instead of timing out X-Git-Tag: v2.6.28-rc9~6^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a804644a1a31a0b85e4c7d3c49f30419513cb6c1;p=pandora-kernel.git i2c-cpm: Detect and report NAK right away instead of timing out Make the driver report an ENXIO error immediately upon NAK instead of waiting for another interrupt and getting a timeout. When reading from a device that is not present or declines to respond to, e.g., a non-existent register address, CPM immediately reports a NAK condition in the TxBD, but the driver kept waiting until a timeout, which takes 1 second and causes an ugly console error message. Signed-off-by: Mike Ditto Acked-by: Jochen Friedrich [ben-linux@fluff.org: reordered description text] Signed-off-by: Ben Dooks --- Reading git-diff-tree failed