]> git.ipfire.org Git - thirdparty/openwrt.git/commit
mediatek: don't let devfreq power-off the CPU main master 22894/head
authorDaniel Golle <daniel@makrotopia.org>
Sat, 11 Apr 2026 21:59:07 +0000 (22:59 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Mon, 13 Apr 2026 23:54:37 +0000 (00:54 +0100)
commita45ce4c78838d01fe52bee1cccf52449a8b5f530
tree0fbfc28d65e35702430af22b7d4d4d9372ff201a
parentca8d93120567620eee57a65d37935e159169b8c3
mediatek: don't let devfreq power-off the CPU

Fix a long standing bug in the mediatek-cci-devfreq driver which leads
to the driver switching off the CPU power regulator in case of another
resource not being ready in time -- a classic probe-order race condition.

As a work-around it would of course just as well be possible to set the
CPU regulator as 'regulator-always-on' (and not just 'regulator-boot-on'),
but practically all MT7988 devices have copy&pasted the PMIC device tree
hunk which sets only 'regulator-boot-on').

Hence, in order not having to fix all device trees, a proper fix in the
driver is preferred.

Fixes: #683
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
target/linux/mediatek/patches-6.12/210-PM-devfreq-mtk-cci-use-devres-for-resource-managemen.patch [new file with mode: 0644]
target/linux/mediatek/patches-6.12/211-PM-devfreq-mtk-cci-check-cpufreq-availability-early.patch [new file with mode: 0644]