[PATCH linux-next 01/33] clk: mediatek: Skip common MMIO mapping for PLL-only controllers

Akari Tsuyukusa akkun11.open at gmail.com
Sat Nov 28 17:47:13 PST 2026


mtk_clk_register_plls() maps the PLL registers itself and does not use
the base address passed by __mtk_clk_simple_probe(). The common mapping
is therefore redundant when a descriptor only provides PLL clocks.

This change was mistakenly added when adding PLL support to the common
helpers.
Limit the common mapping to composite and divider clocks, which
actually use the base address.

Fixes: 5a5a9ce0c656 ("clk: mediatek: Add PLL support to common probe/remove helpers")
Signed-off-by: Akari Tsuyukusa <akkun11.open at gmail.com>
---
 drivers/clk/mediatek/clk-mtk.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/clk/mediatek/clk-mtk.c b/drivers/clk/mediatek/clk-mtk.c
index 26e5e177929f..f5938672ba20 100644
--- a/drivers/clk/mediatek/clk-mtk.c
+++ b/drivers/clk/mediatek/clk-mtk.c
@@ -487,7 +487,7 @@ static int __mtk_clk_simple_probe(struct platform_device *pdev,
 	}
 
 	/* Composite and divider clocks needs us to pass iomem pointer */
-	if (mcd->composite_clks || mcd->divider_clks || mcd->plls) {
+	if (mcd->composite_clks || mcd->divider_clks) {
 		if (!mcd->shared_io)
 			base = devm_platform_ioremap_resource(pdev, 0);
 		else
-- 
2.56.0




More information about the linux-arm-kernel mailing list