From: Peter Crosthwaite Date: Tue, 4 Jun 2013 14:02:34 +0000 (+0200) Subject: spi: spi-xilinx: Remove ISR race condition X-Git-Tag: v3.10-rc6~30^2^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=68c315bb951d94210c43c52166d326f9c26f7ce8;p=pandora-kernel.git spi: spi-xilinx: Remove ISR race condition The ISR currently consumes the rx buffer data and re-enables transmission from within interrupt context. This is bad because if the interrupt occurs again before the ISR exits, the new interrupt will be erroneously cleared by the still completing ISR. Simplified the ISR by just setting the completion variable and exiting with no action. Then just looped the transmit functionality in xilinx_spi_txrx_bufs(). Signed-off-by: Peter Crosthwaite Signed-off-by: Michal Simek Signed-off-by: Mark Brown --- Reading git-diff-tree failed