spi: sh-msiof: Fix handling of write value for SISTR register
authorHiromitsu Yamasaki <hiromitsu.yamasaki.ym@renesas.com>
Wed, 5 Sep 2018 08:49:37 +0000 (10:49 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 4 Oct 2018 00:00:55 +0000 (17:00 -0700)
commit6074b71d617ddfafc15164f4b6e320c7db4d24d7
tree042c39ce9c81f6625cfd475ee49c3b2a18593c78
parentd120858fca5f631195fbb7e2c2768d525d1c80da
spi: sh-msiof: Fix handling of write value for SISTR register

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