watchdog: sunxi: fix activation of system reset
authorFrancesco Lavra <francescolavra.fl@gmail.com>
Sat, 25 Jul 2015 06:25:18 +0000 (08:25 +0200)
committerWim Van Sebroeck <wim@iguana.be>
Wed, 9 Sep 2015 19:34:14 +0000 (21:34 +0200)
commit0919e4445190da18496d31aac08b90828a47d45f
treedc60c184638694f7e5f8b101b447accaa6f92378
parent5724485b185a4ac4bb96149718ff736c5ef5c169
watchdog: sunxi: fix activation of system reset

Commit f2147de33470 ("watchdog: sunxi: support parameterized compatible
strings") introduced a regression in sunxi_wdt_start(), by which
the system reset function of the watchdog is not enabled upon
starting the watchdog. As a result, the system is not reset when the
watchdog expires. Fix it.

Fixes: f2147de33470 ("watchdog: sunxi: support parameterized compatible strings")
Signed-off-by: Francesco Lavra <francescolavra.fl@gmail.com>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Cc: stable@vger.kernel.org
drivers/watchdog/sunxi_wdt.c