OSDN Git Service

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>
Wed, 3 Oct 2018 23:59:18 +0000 (16:59 -0700)
commit2469b01fa5143a88c632248283d9fee788ceceb2
tree7c02a2c0f1c4ce8d568c07a9454df1eee09c16fc
parent38274415d1180966c082c2db8cb0faabc626f8e6
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