Message ID | 1407618418-5427-1-git-send-email-jorge.araujo.ventura@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 3d0763c006f8da1b44a9f5f9a21187f5b8f674f4 |
Headers | show |
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 --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);