]> git.baikalelectronics.ru Git - kernel.git/commit
spi/omap-mcspi: check condition also after timeout
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Thu, 21 Mar 2013 12:22:48 +0000 (13:22 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 1 Apr 2013 13:19:15 +0000 (14:19 +0100)
commit39e92c52c61b82573ac9f0db0b6eb254d2778192
treed1ed38448d84cf9f50493f0b64fca29fc7be22e8
parent4a67b2061dad7b79f576c8ca9c5d238c152c25d0
spi/omap-mcspi: check condition also after timeout

It is possible that the handler gets interrupted after checking the
status. After it resumes the time out is due but the condition it was
waiting for might be true as well. Therefore it is necessary to check
the condition in case of an time out to be sure that the condition is
not true after the time passed by.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/spi/spi-omap2-mcspi.c