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

2019-05-16 Thread Stefan Roese
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 Signed-

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

2019-05-15 Thread Weijie Gao
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 Signed-off-by: Weijie Gao --- drivers/watchd