omap_cm_wait_module_ready(9)
π NAME π
okay so omap_cm_wait_module_ready is literally the function for βwait for a module to leave idle or standby.β This page is from the Kernel API Manual, and it is giving very specific OMAP energy. β¨
β¨ SYNOPSIS β¨
int omap_cm_wait_module_ready (u8 part , s16 prcm_mod , u16 idlest_reg ,
u8 idlest_shift );
π ARGUMENTS π
bestie, here is the lineup:
partβ PRCM partition.prcm_modβ PRCM module offset.idlest_regβCM_IDLESTxregister.idlest_shiftβ shift of the bit in theCM_IDLEST*register to check.
π¦ DESCRIPTION π¦
okay so lowkey the whole job is: wait for the PRCM to indicate that the module identified by (prcm_mod, idlest_id, idlest_shift) is clocked. That is the vibe check. β¨
It returns 0 upon success. If the module doesnβt enable in time, it returns -EBUSY. If no per-SoC wait_module_ready function pointer has been registered, or if the idlest register is unknown on the SoC, it returns -EINVAL. Periodt. π
π SEE ALSO π
Kernel file ./arch/arm/mach-omap2/cm_common.c has the receipts, and these related functions are the friend group:
cm_split_idlest_reg(9)omap_cm_wait_module_idle(9)omap_cm_module_enable(9)omap_cm_module_disable(9)cm_register(9)cm_unregister(9)omap2_cm_base_init(9)omap_cm_init(9)
xoxo, source ./arch/arm/mach-omap2, dated October 2026, page omap_cm_wait_module_ready(9) out π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms