spi: sprd: switch the sequence of setting WDG_LOAD_LOW and _HIGH
authorLingling Xu <ling_ling.xu@unisoc.com>
Tue, 2 Jun 2020 08:24:15 +0000 (16:24 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Jul 2020 07:34:28 +0000 (09:34 +0200)
commite59515ce46a9af79dbf0e5b4bef6f04fc697aebb
tree94fbdcf12d27720493483dd30fe4f7b4c7ace74d
parent64d7aedd839f740898667242ef7bdedd0b90f116
spi: sprd: switch the sequence of setting WDG_LOAD_LOW and _HIGH

commit 8bdd79dae1ff5397351b95e249abcae126572617 upstream.

The watchdog counter consists of WDG_LOAD_LOW and WDG_LOAD_HIGH,
which would be loaded to watchdog counter once writing WDG_LOAD_LOW.

Fixes: ac1775012058 ("spi: sprd: Add the support of restarting the system")
Signed-off-by: Lingling Xu <ling_ling.xu@unisoc.com>
Signed-off-by: Chunyan Zhang <chunyan.zhang@unisoc.com>
Link: https://lore.kernel.org/r/20200602082415.5848-1-zhang.lyra@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/spi/spi-sprd-adi.c