]> git.baikalelectronics.ru Git - kernel.git/commit
spi: sprd: Fix the wrong WDG_LOAD_VAL
authorChunyan Zhang <chunyan.zhang@unisoc.com>
Thu, 26 Aug 2021 09:15:46 +0000 (17:15 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 26 Aug 2021 11:09:37 +0000 (12:09 +0100)
commitc2ff6d248686f6277cada5ed5684e859e553d762
treefbbec96915965340fc69ca2f9470f6c916d66a1d
parent2f572ae3eee6e2871ec4a9054a45312abb768a80
spi: sprd: Fix the wrong WDG_LOAD_VAL

Use 50ms as default timeout value and the time clock is 32768HZ.
The original value of WDG_LOAD_VAL is not correct, so this patch
fixes it.

Fixes: 97a029b5d4c1 ("spi: sprd: Add the support of restarting the system")
Signed-off-by: Chunyan Zhang <chunyan.zhang@unisoc.com>
Link: https://lore.kernel.org/r/20210826091549.2138125-2-zhang.lyra@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-sprd-adi.c