lkml.org 
[lkml]   [2018]   [Oct]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 3.18 051/120] spi: sh-msiof: Fix handling of write value for SISTR register
    Date
    3.18-stable review patch.  If anyone has any objections, please let me know.

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

    From: Hiromitsu Yamasaki <hiromitsu.yamasaki.ym@renesas.com>

    commit 31a5fae4c5a009898da6d177901d5328051641ff upstream.

    This patch changes writing to the SISTR register according to the H/W
    user's manual.

    The TDREQ bit and RDREQ bits of SISTR are read-only, and must be written
    their initial values of zero.

    Signed-off-by: Hiromitsu Yamasaki <hiromitsu.yamasaki.ym@renesas.com>
    [geert: reword]
    Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
    Signed-off-by: Mark Brown <broonie@kernel.org>
    Cc: stable@vger.kernel.org
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

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

    --- a/drivers/spi/spi-sh-msiof.c
    +++ b/drivers/spi/spi-sh-msiof.c
    @@ -332,7 +332,8 @@ static void sh_msiof_spi_set_mode_regs(s

    static void sh_msiof_reset_str(struct sh_msiof_spi_priv *p)
    {
    - sh_msiof_write(p, STR, sh_msiof_read(p, STR));
    + sh_msiof_write(p, STR,
    + sh_msiof_read(p, STR) & ~(STR_TDREQ | STR_RDREQ));
    }

    static void sh_msiof_spi_write_fifo_8(struct sh_msiof_spi_priv *p,

    \
     
     \ /
      Last update: 2018-10-11 18:03    [W:3.389 / U:0.012 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site