From: Arnaud Patard Date: Tue, 23 Mar 2010 16:28:28 +0000 (+0100) Subject: i2c-imx: fix error handling X-Git-Tag: v2.6.34-rc6~71^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=da9c99fc32e2d84f80672d192a7aaf7239057a2e;p=pandora-kernel.git i2c-imx: fix error handling - Return -ETIMEDOUT on bus busy error - Fix timeout test "time_after(jiffies, orig_jiffies + HZ / 1000)" : By default, HZ=100 on arm. This means that this test has no chances to work and may result in a dead loop. Set timeout to 500ms. - Don't try to send a new message if we failed to transmit previous one. This was preventing to recover from error on my system Signed-off-by: Arnaud Patard Signed-off-by: Ben Dooks --- Reading git-diff-tree failed