mtk_ovl_adaptor_power_on(9)
β¨ 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
- 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