]> 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)
commitd362f21a199441bc865960eddb7e77857506ad36
treefbbec96915965340fc69ca2f9470f6c916d66a1d
parent4ea8e7d9221b1b6738a899c0f1de9d0db6249206
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: dabcae1e39e9 ("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