projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f674aac
)
spi: sprd: Fix the wrong WDG_LOAD_VAL
author
Chunyan Zhang
<chunyan.zhang@unisoc.com>
Thu, 26 Aug 2021 09:15:46 +0000
(17:15 +0800)
committer
Mark Brown
<broonie@kernel.org>
Thu, 26 Aug 2021 11:09:37 +0000
(12:09 +0100)
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>
drivers/spi/spi-sprd-adi.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/spi/spi-sprd-adi.c
b/drivers/spi/spi-sprd-adi.c
index 07f11b17bf206bde7167b481935cc97becad9a24..d392dc6db9277616fee4db4e48ca4e72ea25e7e6 100644
(file)
--- a/
drivers/spi/spi-sprd-adi.c
+++ b/
drivers/spi/spi-sprd-adi.c
@@
-103,7
+103,7
@@
#define HWRST_STATUS_WATCHDOG 0xf0
/* Use default timeout 50 ms that converts to watchdog values */
-#define WDG_LOAD_VAL ((50 *
1000) / 32768
)
+#define WDG_LOAD_VAL ((50 *
32768) / 1000
)
#define WDG_LOAD_MASK GENMASK(15, 0)
#define WDG_UNLOCK_KEY 0xe551