]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
Blackfin SPI Driver: add timeout while waiting for SPIF in dma irq handler
authorMike Frysinger <vapier.adi@gmail.com>
Tue, 7 Apr 2009 02:00:42 +0000 (19:00 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 7 Apr 2009 15:31:05 +0000 (08:31 -0700)
commitaaaf939c573b783398b6af863576322256352f64
tree41784ef46eca1e51db79b82877ad9ca173361e76
parent11d6f5995137ba4dc49e9337185ac0a8753f8f69
Blackfin SPI Driver: add timeout while waiting for SPIF in dma irq handler

The "while" endless loop will cause the system hang if hardware error, so
we add timeout control to make the system alive.

Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
Cc: David Brownell <david-b@pacbell.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/spi/spi_bfin5xx.c