]> git.karo-electronics.de Git - linux-beck.git/commit
watchdog: mtk_wdt: Use MODE_KEY when stopping the watchdog
authorNicolas Boichat <drinkcat@chromium.org>
Wed, 18 Nov 2015 02:45:01 +0000 (10:45 +0800)
committerWim Van Sebroeck <wim@iguana.be>
Mon, 23 Nov 2015 08:00:09 +0000 (09:00 +0100)
commit5da2bf1ac8fbe701a138efb340b9f2ef26c10ed7
treefaaf416c157710a39d975cbd9177cdbf965de557
parent646251a59c73253a7a2c7b1d6adbedd2292390a0
watchdog: mtk_wdt: Use MODE_KEY when stopping the watchdog

WDT_MODE value need to be or-ed with MODE_KEY when setting
watchdog mode. Add it to mtk_wdt_stop function, so that the
watchdog can be stopped (e.g. during suspend).

Signed-off-by: Nicolas Boichat <drinkcat@chromium.org>
Acked-by: Matthias Brugger <matthias.bgg@gmail.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/mtk_wdt.c