[PATCH 1/2] ARM/MXS/i.MX28: recognize watchdog reset
Sascha Hauer
sha at pengutronix.de
Mon Mar 30 10:24:24 PDT 2015
On Fri, Mar 27, 2015 at 08:23:11PM +0100, Marc Kleine-Budde wrote:
> From: Steffen Trumtrar <s.trumtrar at pengutronix.de>
>
> When a watchdog timeout is set in the linux kernel, the FORCE_UPDATE bit is set.
> Use this to recognize a system reset that was triggered by the watchdog.
> Since only the wdt part of the kernel driver sets this bit, this is a safe
> distinguishing feature.
>
> Signed-off-by: Steffen Trumtrar <s.trumtrar at pengutronix.de>
> Signed-off-by: Marc Kleine-Budde <mkl at pengutronix.de>
> ---
> drivers/watchdog/im28wd.c | 7 +++++++
> 1 file changed, 7 insertions(+)
Applied, thanks
Sascha
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
More information about the barebox
mailing list