diff options
| author | Jorge A. Ventura <jorge.araujo.ventura@gmail.com> | 2014-08-09 17:06:58 -0400 |
|---|---|---|
| committer | Mark Brown <broonie@linaro.org> | 2014-08-11 14:55:51 -0400 |
| commit | 3d0763c006f8da1b44a9f5f9a21187f5b8f674f4 (patch) | |
| tree | 3b1107cd25aaa92fad225d55f91fd21845e774e9 | |
| parent | fab6a0410d20ef09238ef54b8726d170578da752 (diff) | |
spi/omap-mcspi: Fix the spi task hangs waiting dma_rx
The spi hangs waiting the completion of omap2_mcspi_rx_callback.
Signed-off-by: Jorge A. Ventura <jorge.araujo.ventura@gmail.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Cc: stable@vger.kernel.org
| -rw-r--r-- | drivers/spi/spi-omap2-mcspi.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/spi/spi-omap2-mcspi.c b/drivers/spi/spi-omap2-mcspi.c index 68441fa448de..352eed7463ac 100644 --- a/drivers/spi/spi-omap2-mcspi.c +++ b/drivers/spi/spi-omap2-mcspi.c | |||
| @@ -329,7 +329,8 @@ static void omap2_mcspi_set_fifo(const struct spi_device *spi, | |||
| 329 | disable_fifo: | 329 | disable_fifo: |
| 330 | if (t->rx_buf != NULL) | 330 | if (t->rx_buf != NULL) |
| 331 | chconf &= ~OMAP2_MCSPI_CHCONF_FFER; | 331 | chconf &= ~OMAP2_MCSPI_CHCONF_FFER; |
| 332 | else | 332 | |
| 333 | if (t->tx_buf != NULL) | ||
| 333 | chconf &= ~OMAP2_MCSPI_CHCONF_FFET; | 334 | chconf &= ~OMAP2_MCSPI_CHCONF_FFET; |
| 334 | 335 | ||
| 335 | mcspi_write_chconf0(spi, chconf); | 336 | mcspi_write_chconf0(spi, chconf); |
