mtk_ovl_adaptor_power_on(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ mtk_ovl_adaptor_power_on ✨

okay so bestie, this is a page from the Kernel API Manual (kernel-core energy fr fr) and it's about one (1) tiny function that does one (1) very specific little job πŸ’… buckle up.


🌸 NAME 🌸

mtk_ovl_adaptor_power_on β€” literally just powers on the devices inside the OVL adaptor βš‘πŸ”Œ


πŸ¦‹ SYNOPSIS πŸ¦‹

int mtk_ovl_adaptor_power_on (struct device *dev );

that's it. that's the whole vibe check πŸ‘‘


πŸŽ€ ARGUMENTS πŸŽ€

  • dev β€” the device that's getting powered on, no cap 🫢 this is the one you're waking up.

πŸ’– DESCRIPTION πŸ’–

okay so here's the tea β˜• the OVL adaptor is different from OVL β€” it's a pseudo device, which means we didn't define it in the device tree at all πŸ™ˆ so when .atomic_enable calls pm_runtime_resume_and_get, it literally powers on no device in the OVL adaptor 😭 nothing. zero. nada.

which is why we had to implement this whole function to do the job instead πŸ’… sometimes you just gotta write the thing yourself, yk? main character energy honestly.


⭐ RETURN ⭐

  • Zero β†’ success, we ate πŸ”₯
  • negative number β†’ failure, and it's giving πŸ’€

🌈 SEE ALSO 🌈

  • the kernel file ./drivers/gpu/drm/mediatek/mtk_disp_ovl_adaptor.c β€” go read the source bestie, it's right there πŸ“–βœ¨
  • power_off(9) β€” the opposite twin, the duo we didn't ask for but needed 🫢

ngl this one's short but she's iconic. use the return value. respect the negative number. periodt πŸ’…

and that's the whole page!! brought to you by ./drivers/gpu/drm/mediatek, dated October 2026 β€” mwah, signing off πŸŽ€πŸ§šπŸ’œ

πŸ“¦ where this page comes from