[openwrt/openwrt] mediatek: 6.12: fix cci driver probe for mt7988d

LEDE Commits lede-commits at lists.infradead.org
Thu Jun 19 13:53:26 PDT 2025


dangole pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/782afec6c1db8f43bbef33996dd95d1339596454

commit 782afec6c1db8f43bbef33996dd95d1339596454
Author: Chukun Pan <amadeus at jmu.edu.cn>
AuthorDate: Mon Jun 16 23:06:38 2025 +0800

    mediatek: 6.12: fix cci driver probe for mt7988d
    
    The patch of kernel 6.12 missing cpufreq part for
    mt7988d, causing the ccifreq driver probe to fail.
    Add it to avoid mt7988d devices boot hang.
    
    Fixes: a9822e8 ("kernel/mediatek: 6.12: drop patches which have been applied upstream")
    Signed-off-by: Chukun Pan <amadeus at jmu.edu.cn>
---
 ...1-cpufreq-mediatek-Add-support-for-MT7988.patch | 45 ++++++++++++++++++++++
 1 file changed, 45 insertions(+)

diff --git a/target/linux/mediatek/patches-6.12/350-21-cpufreq-mediatek-Add-support-for-MT7988.patch b/target/linux/mediatek/patches-6.12/350-21-cpufreq-mediatek-Add-support-for-MT7988.patch
new file mode 100644
index 0000000000..c52ed76e92
--- /dev/null
+++ b/target/linux/mediatek/patches-6.12/350-21-cpufreq-mediatek-Add-support-for-MT7988.patch
@@ -0,0 +1,45 @@
+From patchwork Fri Apr 19 16:59:07 2024
+Content-Type: text/plain; charset="utf-8"
+MIME-Version: 1.0
+Content-Transfer-Encoding: 7bit
+X-Patchwork-Submitter: Daniel Golle <daniel at makrotopia.org>
+X-Patchwork-Id: 13636668
+Return-Path: 
+ <linux-mediatek-bounces+linux-mediatek=archiver.kernel.org at lists.infradead.org>
+Date: Fri, 19 Apr 2024 17:59:07 +0100
+From: Daniel Golle <daniel at makrotopia.org>
+To: "Rafael J. Wysocki" <rafael at kernel.org>,
+	Viresh Kumar <viresh.kumar at linaro.org>,
+	Matthias Brugger <matthias.bgg at gmail.com>,
+	AngeloGioacchino Del Regno <angelogioacchino.delregno at collabora.com>,
+	linux-pm at vger.kernel.org, linux-kernel at vger.kernel.org,
+	linux-arm-kernel at lists.infradead.org,
+	linux-mediatek at lists.infradead.org
+Subject: [PATCH] cpufreq: mediatek: Add support for MT7988A
+Message-ID: 
+ <acf4fb446aacfbf6ce7b6e94bf3aad303e0ad4d1.1713545923.git.daniel at makrotopia.org>
+Content-Disposition: inline
+List-Id: <linux-mediatek.lists.infradead.org>
+
+From: Sam Shih <sam.shih at mediatek.com>
+
+This add cpufreq support for mediatek MT7988A SoC.
+
+The platform data of MT7988A is different from previous MediaTek SoCs,
+so we add a new compatible and platform data for it.
+
+Signed-off-by: Sam Shih <sam.shih at mediatek.com>
+---
+ drivers/cpufreq/mediatek-cpufreq.c | 10 ++++++++++
+ 1 file changed, 10 insertions(+)
+
+--- a/drivers/cpufreq/mediatek-cpufreq.c
++++ b/drivers/cpufreq/mediatek-cpufreq.c
+@@ -744,6 +744,7 @@ static const struct of_device_id mtk_cpu
+ 	{ .compatible = "mediatek,mt7622", .data = &mt7622_platform_data },
+ 	{ .compatible = "mediatek,mt7623", .data = &mt7623_platform_data },
+ 	{ .compatible = "mediatek,mt7988a", .data = &mt7988_platform_data },
++	{ .compatible = "mediatek,mt7988d", .data = &mt7988_platform_data },
+ 	{ .compatible = "mediatek,mt8167", .data = &mt8516_platform_data },
+ 	{ .compatible = "mediatek,mt817x", .data = &mt2701_platform_data },
+ 	{ .compatible = "mediatek,mt8173", .data = &mt2701_platform_data },




More information about the lede-commits mailing list