Commit 5f53a1e9 authored by Jorge A. Ventura's avatar Jorge A. Ventura Committed by Greg Kroah-Hartman

spi/omap-mcspi: Fix the spi task hangs waiting dma_rx

commit 3d0763c0 upstream.

The spi hangs waiting the completion of omap2_mcspi_rx_callback.
Signed-off-by: default avatarJorge A. Ventura <jorge.araujo.ventura@gmail.com>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 08c01d23
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment