From: Oskar Schirmer Date: Thu, 16 Feb 2012 12:17:45 +0000 (+0000) Subject: watchdog: make imx2_wdt report boot status correctly X-Git-Tag: v3.4-rc1~67^2~31 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=474ef121008a2992bcc496930166ced89bda23d2;p=pandora-kernel.git watchdog: make imx2_wdt report boot status correctly Ioctl WDIOC_GETBOOTSTATUS is supposed to return some information on why the system did (re)boot recently, value WDIOF_CARDRESET being used to indicate watchdog induced reboot. Up to now, imx2_wdt did not provide a value here, always returning zero to indicate normal boot. Do evaluate the IMX Watchdog Reset Status Register and produce WDIOF_CARDRESET with WDIOC_GETBOOTSTATUS in case of a watchdog induced reset. Signed-off-by: Oskar Schirmer Acked-by: Wolfram Sang Signed-off-by: Wim Van Sebroeck --- Reading git-diff-tree failed