lkml.org 
[lkml]   [2014]   [Oct]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 3.14 108/238] spi/omap-mcspi: Fix the spi task hangs waiting dma_rx
    Date
    3.14-stable review patch.  If anyone has any objections, please let me know.

    ------------------

    From: "Jorge A. Ventura" <jorge.araujo.ventura@gmail.com>

    commit 3d0763c006f8da1b44a9f5f9a21187f5b8f674f4 upstream.

    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>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

    ---
    drivers/spi/spi-omap2-mcspi.c | 3 ++-
    1 file changed, 2 insertions(+), 1 deletion(-)

    --- a/drivers/spi/spi-omap2-mcspi.c
    +++ b/drivers/spi/spi-omap2-mcspi.c
    @@ -321,7 +321,8 @@ static void omap2_mcspi_set_fifo(const s
    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);



    \
     
     \ /
      Last update: 2014-10-04 02:01    [W:2.400 / U:0.036 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site