]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Sep 2021 08:00:35 +0000 (10:00 +0200)
commit8a4b0fc3cce02f96ace5719e90585ec620b4fb3c
tree56a2d96c1510bf05cd7ec7b743906f72136bae8d
parent841e2dca5a89a74ce3bdb2275fba12fd61457e51
spi: sprd: Fix the wrong WDG_LOAD_VAL

[ Upstream commit 245ca2cc212bb2a078332ec99afbfbb202f44c2d ]

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: ac1775012058 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/spi/spi-sprd-adi.c