diff mbox

[1/1] spi: Fix the spi task hangs waiting dma_rx

Message ID 1407618418-5427-1-git-send-email-jorge.araujo.ventura@gmail.com (mailing list archive)
State Accepted
Commit 3d0763c006f8da1b44a9f5f9a21187f5b8f674f4
Headers show

Commit Message

Jorge Ventura Aug. 9, 2014, 9:06 p.m. UTC
From: "Jorge A. Ventura" <jorge.araujo.ventura@gmail.com>

The spi hangs waiting the completion of omap2_mcspi_rx_callback.

Signed-off-by: Jorge A. Ventura <jorge.araujo.ventura@gmail.com>
---
 drivers/spi/spi-omap2-mcspi.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Mark Brown Aug. 11, 2014, 6:56 p.m. UTC | #1
On Sat, Aug 09, 2014 at 04:06:58PM -0500, Jorge Ventura wrote:
> From: "Jorge A. Ventura" <jorge.araujo.ventura@gmail.com>
> 
> The spi hangs waiting the completion of omap2_mcspi_rx_callback.

Applied, thanks.
diff mbox

Patch

diff --git a/drivers/spi/spi-omap2-mcspi.c b/drivers/spi/spi-omap2-mcspi.c
index 68441fa..352eed7 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,
 disable_fifo:
 	if (t->rx_buf != NULL)
 		chconf &= ~OMAP2_MCSPI_CHCONF_FFER;
-	else
+
+	if (t->tx_buf != NULL)
 		chconf &= ~OMAP2_MCSPI_CHCONF_FFET;
 
 	mcspi_write_chconf0(spi, chconf);