omap2_wd_timer_reset(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… omap2_wd_timer_reset β€” that’s the Kernel API Manual, bestie πŸ’…

πŸŽ€ NAME πŸŽ€

omap2_wd_timer_reset β€” reset and disable the WDTIMER IP block. slay.


✨ SYNOPSIS ✨

int omap2_wd_timer_reset (struct omap_hwmod *oh );

🌸 ARGUMENTS 🌸

  • oh β€” it’s a struct omap_hwmod *. that’s the whole argument, no cap.

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so after the WDTIMER IP blocks are reset on OMAP2/3, we must also take care to execute the special watchdog disable sequence. why? because the watchdog is re-armed upon OCP softreset. iconic behavior, honestly. (on OMAP4, this behavior was apparently changed and the watchdog is no longer re-armed after an OCP soft-reset. good for OMAP4, i guess πŸ’…)

it returns -ETIMEDOUT if the reset did not complete, or 0 upon success.

XXX Most of this code should be moved to omap_hwmod.c layer during a normal merge window. omap_hwmod_softreset should be renamed to omap_hwmod_set_ocp_softreset, and omap_hwmod_softreset should call the hwmod _ocp_softreset code. noted, bestie 🫢

πŸ” RETURN πŸ”

0 on success or -errno value on error. periodt.


πŸ‘€ SEE ALSO πŸ‘€

  • Kernel file ./arch/arm/mach-omap2/wd_timer.c

πŸ’– xoxo bestie β€” source/version ./arch/arm/mach-omap2, dated October 2026, for omap2_wd_timer_reset(9) πŸ’–

πŸ“¦ where this page comes from