From: Sebastian Andrzej Siewior Date: Wed, 23 Feb 2011 11:38:19 +0000 (+0100) Subject: i2c-pxa2xx: check timeout correctly X-Git-Tag: v2.6.39-rc1~387^2~1^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=93c92cfdec8c3f8764894b37606c174f68fd9338;p=pandora-kernel.git i2c-pxa2xx: check timeout correctly timeout here maybe 0 if the event occured and a task with a higher priority stole the cpu and we were sleeping longer than the timeout value we specified. In case of a real timeout I changed the error code to I2C_RETRY so we retry the transfer. Signed-off-by: Sebastian Andrzej Siewior Signed-off-by: Dirk Brandewie Signed-off-by: Ben Dooks --- Reading git-diff-tree failed