]> git.baikalelectronics.ru Git - kernel.git/commit
i2c-pxa2xx: check timeout correctly
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Wed, 23 Feb 2011 11:38:19 +0000 (12:38 +0100)
committerBen Dooks <ben-linux@fluff.org>
Mon, 21 Mar 2011 09:23:55 +0000 (09:23 +0000)
commit8a397967ae34a88c34234cf5618fa551fe4d20bc
tree131888459d95f1139685e8c5b3f8ac30c7215d47
parent09301c05aa766e08dd7aca1b826923116ea35636
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 <bigeasy@linutronix.de>
Signed-off-by: Dirk Brandewie <dirk.brandewie@gmail.com>
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
drivers/i2c/busses/i2c-pxa.c