RFC watchdog boot status
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest0 of 2 patches 0 repliesNew
Patches in v1 No applies recorded yet
None of the 2 patches the cover letter announces are in this archive.
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH RFC 0/2] watchdog boot status
Quoted 21 lines · Shubhrajyoti D <shubhrajyoti <at> ti.com> writes:
This patch series does the following
Patch 1:
Fixes theomap_prcm_get_reset_sources()for omap3/4Patch 2:
Extends theWDIOC_GETBOOTSTATUSto support omap3/4.Tested on omap3sdp and omap4sdp.
Rajendra Nayak (1):
ARM: omap: Fixomap_prcm_get_reset_sources()for omap3/4Shubhrajyoti D (1):
watchdog :omap_wdt: ImplementWDIOC_GETBOOTSTATUSfor omap3+arch/arm/mach-omap2/prcm.c | 13 ++++++++----- arch/arm/mach-omap2/prm44xx.h | 3 --- drivers/watchdog/omap_wdt.c | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-)
Quoted 6 lines
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo <at> vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Hi ,
I am trying to get a last reboot reason using WDIOC_GETBOOTSTATUS ioctl
call from application. Previously before applying this patch it was always returning me non-zero value no matter reboot is caused by watchdog or power on reset, so i applied this patch and added some prink statements to omap_wdt.c file and now after applying patch :
if (cpu_is_omap24xx() || cpu_is_omap34xx() || cpu_is_omap44xx()) this condition is successfull and omap_prcm_get_reset_sources() function is getting called and everytime i am getting 0 for ioctl call thus even if reboot is caused by watchdog it will return me 0 (Power-On-Reset). What may be the reasons behind this kind of behaviour?
This is the omap_prcm_get_reset_sources() function from arch/arm/mach-omap2/prcm.c file in my kernel source :
u32 omap_prcm_get_reset_sources(void)
{
/* XXX This presumably needs modification for 34XX */
if (cpu_is_omap24xx() || cpu_is_omap34xx())
return omap2_prm_read_mod_reg(WKUP_MOD, OMAP2_RM_RSTST) & 0x7f;
if (cpu_is_omap44xx())
return omap2_prm_read_mod_reg(WKUP_MOD, OMAP4_RM_RSTST) & 0x7f;
return 0;
}