summaryrefslogtreecommitdiff
path: root/drivers/ddr/marvell/a38x/ddr3_init.c
diff options
context:
space:
mode:
authorChristophe Leroy <christophe.leroy@csgroup.eu>2024-06-27 10:26:08 +0200
committerTom Rini <trini@konsulko.com>2024-07-05 13:57:02 -0600
commit7a74e31938ad7534452efcf9ce6c82fc75402f59 (patch)
treeea83950bed806697d252270417ca5e8801515e7d /drivers/ddr/marvell/a38x/ddr3_init.c
parent905dc347dade9cc956f064cc885f38f83e68376a (diff)
watchdog: mpc8xxx: Fix timer value
Timer value is a 16 bits calculated from the wanted timeout and the system clock. On powerpc/8xx, a timeout of 2s gives a value which is over U16_MAX so U16_MAX shall be used. But the calculation is casted to u16 so at the end the result is 63770 instead of 128906. So the timer gets loaded with 63770 instead of 65535. It is not a big difference in that case, but lets make the code correct and cast to u32 instead of u16. Fixes: 26e8ebcd7cb7 ("watchdog: mpc8xxx: Make it generic") Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Diffstat (limited to 'drivers/ddr/marvell/a38x/ddr3_init.c')
0 files changed, 0 insertions, 0 deletions