Mediatek Driver 2023 Page

A long silence. Then Chen sighed. “The fix was in our internal branch. It did not make the 2023 release. Management cut the schedule.”

“Then disable it in your device tree.”

On the eve of the biggest smartphone launch of the year, a senior kernel engineer discovers a “zombie” driver buried in MediaTek’s 2023 codebase—a silent battery killer that could trigger a global recall. Part I: The Phantom Drain It was 11:47 PM on a humid Taipei night when Lena Wei’s third coffee of the hour turned cold. As the lead driver architect for a mid-sized smartphone OEM, she was used to last-minute fire drills. But the bug report labeled #MTK-DISP-2023-ALPHA was different.

static void mtk_sleepctl_suspend(struct device *dev) { struct mtk_sleepctl *ctl = dev_get_drvdata(dev); /* 2023-10-12: Force clear PM_QoS vote on suspend */ if (ctl->qos_active) { pm_qos_update_request(&ctl->qos_req, PM_QOS_DEFAULT_VALUE); ctl->qos_active = false; dev_info(dev, "Cleared stale QoS vote (MTK-DISP-2023 fix)\n"); } mediatek driver 2023

/* FIXME: PM_QoS voting mismatch if DVFS table > 4 cores. -SJL, 2022-12-01 */ The fix note was from December 2022—just weeks before the driver was finalized. And it was never resolved.

Every time the phone went to sleep, the driver voted for maximum DDR frequency . And because the vote was never cleared, the memory controller ran at full speed all night.

But in the kernel source tree, deep inside drivers/misc/mediatek/conn_mgr/ , there remains a patch file named: A long silence

Lena wrote a careful email to her CTO: “We can ship this patch as a ‘vendor enhancement.’ MediaTek does not need to know. But if they ever audit us, we lose support.” The CTO, a pragmatic woman named Priya, called her back in 30 seconds.

“You cannot change this now,” Chen said, sipping tea. “The driver is certified. Changing PM_QoS requires re-validation of the entire power management framework. That’s six weeks.”

For two weeks, the team blamed the battery vendor. For another week, they blamed the Android 14 beta. But Lena knew the truth: the kernel was lying to them. It did not make the 2023 release

The header ends with:

At 6:00 AM, she checked the battery graph: . Fixed. Part V: The Gray Zone The fix worked. But it was a “proprietary modification” to MediaTek’s binary-licensed driver—technically a violation of their software agreement.

“Ship it. I’ll handle MediaTek’s legal noise. And Lena—put a big comment in the code. If any engineer touches this in 2024 without reading your note, they’ll undo the fix.” The phone launched in November 2023. Reviewers praised its “all-day battery life.” No one knew about the zombie driver. No one thanked Lena.