[U-Boot] [PATCH 2/3] watchdog: mtk_wdt: fix timeout calculation

Stefan Roese stefan.roese at gmail.com
Thu May 16 08:22:33 UTC 2019


On 16.05.19 08:49, Weijie Gao wrote:
> U-Boot passes timeout in milliseconds for ops->start. However the driver
> treats this value as seconds. This will cause an overflow on writing wdt
> register.
> 
> This patch divides the timeout by 1000 before writing to wdt register.
> 
> Reviewed-by: Ryder Lee <ryder.lee at mediatek.com>
> Signed-off-by: Weijie Gao <weijie.gao at mediatek.com>

Reviewed-by: Stefan Roese <sr at denx.de>

Thanks,
Stefan


More information about the U-Boot mailing list