watchdog: mtk_wdt: add wdt shutdown callback to disable wdt if enabled
authorGreta Zhang <greta.zhang@mediatek.com>
Fri, 24 Jul 2015 07:28:46 +0000 (15:28 +0800)
committerWim Van Sebroeck <wim@iguana.be>
Wed, 9 Sep 2015 19:34:02 +0000 (21:34 +0200)
commit5724485b185a4ac4bb96149718ff736c5ef5c169
treee1cfd5e75df59787f2ee2c7623973e095f52270a
parent9fab06920c9207aca8ff4e2416bb10cabc19294a
watchdog: mtk_wdt: add wdt shutdown callback to disable wdt if enabled

Without .shutdown(), watchdog might reset the system during power off.
For example, if watchdog's timeout is set to 30s, then it is reset to
zero by mtk_wdt_ping(). During power off, no app will ping watchdog,
but watchdog is still running and may trigger reset.

Signed-off-by: Greta Zhang <greta.zhang@mediatek.com>
Signed-off-by: Eddie Huang <eddie.huang@mediatek.com>
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