]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - drivers/spi/spi-sprd-adi.c
spi: sprd: adi: Add a reset reason for watchdog mode
authorSherry Zong <sherry.zong@unisoc.com>
Fri, 26 Jul 2019 07:20:51 +0000 (15:20 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 26 Jul 2019 11:24:28 +0000 (12:24 +0100)
commite6d722ca09c1eebba5660e58b6bcac30c1ccc7ca
treeaa60b62dfc56fbf67faa14a44779c1155c0536a8
parent9d9aa1cc91d68e2140e5948c15947b8254e008e2
spi: sprd: adi: Add a reset reason for watchdog mode

When the system was rebooted by watchdog, now we did not save the watchdog
reset mode which will make system enter a incorrect mode after rebooting.

Thus we should set the watchdog reset mode as default when opening the
watchdog configuration, that means if the system was rebooted by other
reason through the restart_handler(), then we will clear the default
watchdog reset mode to save the correct reset mode.

Signed-off-by: Sherry Zong <sherry.zong@unisoc.com>
Signed-off-by: Baolin Wang <baolin.wang@linaro.org>
Link: https://lore.kernel.org/r/1563f3de43c6c2262d597a25d6138b5de61ea23d.1564125131.git.baolin.wang@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-sprd-adi.c