]> asedeno.scripts.mit.edu Git - linux.git/commit
spi: sprd: adi: Set BIT_WDG_NEW bit when rebooting
authorLingling Xu <ling_ling.xu@unisoc.com>
Mon, 28 Oct 2019 10:10:31 +0000 (18:10 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 28 Oct 2019 13:17:10 +0000 (13:17 +0000)
commit1d00a67c2da2d8d82e6dcc5b398d9f6db656d9be
treeae600d5ba315c1bd4c793dd783f697e6849cb49d
parent91ea1d70607e374b014b4b9bea771ce661f9f64b
spi: sprd: adi: Set BIT_WDG_NEW bit when rebooting

When rebooting system, the PMIC watchdog time loading may not be loaded
correctly when another system is feeding the PMIC watchdog, since we did
not check the watchdog busy status before loading time values.

Thus we should set the BIT_WDG_NEW bit before loading time values, that
can support multiple loads without checking busy status to make sure the
time values can be loaded successfully to avoid this potential issue.

Signed-off-by: Lingling Xu <ling_ling.xu@unisoc.com>
Signed-off-by: Baolin Wang <baolin.wang@linaro.org>
Link: https://lore.kernel.org/r/5655318a7252c9ea518c2f7950a61228ab8f42bf.1572257085.git.baolin.wang@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-sprd-adi.c