Andy Shevchenko 854d2f241d spi: dw-mid: clear BUSY flag fist and test other one
The logic of DMA completion is broken now since test_and_clear_bit() never
returns the other bit is set. It means condition are always false and we have
spi_finalize_current_transfer() called per each DMA completion which is wrong.

The patch fixes logic by clearing BUSY bit first and then check for the other
one.

Fixes: 30c8eb52cc4a (spi: dw-mid: split rx and tx callbacks when DMA)
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
2015-03-07 11:22:02 +00:00
..
2014-12-22 15:32:42 +00:00
2014-12-14 16:10:09 -08:00
2014-12-22 15:32:42 +00:00
2011-06-06 01:16:30 -06:00
2011-06-06 01:16:30 -06:00
2014-12-22 15:32:42 +00:00
2014-12-14 16:10:09 -08:00