OMAP: WDT: Implement WDT in hwmod way
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v8 Latest posting 3/30 of 6 patches 0 repliesNew
- v8 posting 2/30 of 6 patches 0 repliesSuperseded
- v8 posting 1/36 patches 0 repliesSuperseded
Earlier versions · 8
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v7 | 6 patches | 0 replies | Superseded | |
| v6 posting 2/2 | 13 patches | 12 replies | Superseded | |
| v6 posting 1/2 | 7 patches | 6 replies | Superseded | |
| v5 | 6 patches | 20 replies | Superseded | |
| v4 | 6 patches | 4 replies | Superseded | |
| v3 | 5 patches | 4 replies | Superseded | |
| v2 | 6 patches | 2 replies | Superseded | |
| v1 | 6 patches | 4 replies | Superseded |
Patches in v8 posting 3/3 No applies recorded yet
None of the 6 patches the cover letter announces are in this archive.
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v8 yet.
Cover letter [PATCH v8 0/6] OMAP: WDT: Implement WDT in hwmod way
Kevin,
Quoted 2 lines
-----Original Message-----
From: Kevin Hilman [mailto:khilman at deeprootsystems.com]
<<snip>>
Quoted 17 lines
Quoted 17 lines
Quoted 6 lines
I found a little snag with this series. Try testing with
omap2plus_defconfigand changingCONFIG_OMAP_WATCHDOG=n.If
CONFIG_OMAP_WATCHDOGis not enabled in the kernel config, the system will reboot soon after bootup.Thanks for finding this issue.
After watchdog module reset, the WDTs are enabled. The default time for a system reset after a watchdog module reset is ~10s as per the default value of the WDT registers. Hence the above problem is observed.
If
CONFIG_OMAP_WATCHDOGis defined, wdt's probe is called within this 10s time andwatchdog_disableis called during probe. Hence we are not finding this issue ifCONFIG_OMAP_WATCHDOGis defined.
Quoted 8 lines
Quoted 5 lines
Ideally, because of the above, watchdog should be with
HWMOD_INIT_NO_RESETflag.If agreed, I would send the below patch (extended to other OMAPs) on top of my watchdog timer hwmod series with proper change log.
Using
HWMOD_INIT_NO_RESETmakes us still dependent on the bootloader settings.
Agreed.
Quoted 10 lines
Instead, I would rather have a small piece of code in
omap_init_wdt()which disarms the watchdog so we don't have any assumptions about bootloader behavior.The question remains whether this disarm should be
#ifndefCONFIG_OMAP_WATCHDOGor if it should happen all the time. In case the watchdog is a module, it's probe may not happen within the timeout period and they system may reboot also, so I lean towards disarming the watchdog unconditionally.
Agreed. But this shall be handled in mach-omap2/devices.c by directly accessing the watchdog registers and disabling it, as the watchdog driver would not be available by this time. If this okay, I would send a separate patch on top my hwmod series to handle this.
-V Charulatha
<<snip>>