driver: watchdog: reset watchdog in designware_wdt_stop() function
authorMengLi <meng.li@windriver.com>
Mon, 24 May 2021 02:22:48 +0000 (10:22 +0800)
committerStefan Roese <sr@denx.de>
Fri, 16 Jul 2021 08:28:35 +0000 (10:28 +0200)
commit4f7abafe1c6af5d2fc14ef6dd1679086032805f9
tree451ab1a2e31dafef28c59693a8e4af196207cd69
parentd3fc3da9a4fb98104d004b025149ec6dadccc2cd
driver: watchdog: reset watchdog in designware_wdt_stop() function

In uboot command line environment, watchdog is not able to be
stopped with below commands:
SOCFPGA_STRATIX10 # wdt dev watchdog@ffd00200
SOCFPGA_STRATIX10 # wdt stop
Refer to watchdog driver in linux kernel, it is also need to reset
watchdog after disable it so that the disable action takes effect.

Signed-off-by: Meng Li <Meng.Li@windriver.com>
Reviewed-by: Stefan Roese <sr@denx.de>
Reviewed-by: Sean Anderson <sean.anderson@seco.com>
drivers/watchdog/designware_wdt.c