]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Sep 2021 07:47:30 +0000 (09:47 +0200)
commita20dbf0becc27f7cc8477dd120a718daba4dad4b
treec4e6f2b19cf4cb5728d54cda38f8bd0ba74275ae
parentbdbeb26455e8b9b9ed32d4497465cd78474f83e1
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: 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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/spi/spi-sprd-adi.c