[PATCH] phy: mediatek: dp: select REGMAP_MMIO
From: Pengpeng Hou
Date: Mon Nov 30 2026 - 08:36:07 EST
The device-tree probe path creates its own register map with
devm_regmap_init_mmio(), but PHY_MTK_DP does not select REGMAP_MMIO.
The legacy platform-data path receives a regmap from its parent, but
that runtime alternative does not remove the MMIO initialization
reference from the driver object.
Select REGMAP_MMIO so the PHY driver has the backend required by its
device-tree probe path without relying on another driver to enable
it.
The issue was found by our static-analysis tool and manually reviewed.
Fixes: 5cba2e8177fa ("phy: phy-mtk-dp: Allow probing with devicetree match")
Signed-off-by: Pengpeng Hou <hppiscas@xxxxxxx>
---
AI assistance: gpt 5 (patch preparation and review).
drivers/phy/mediatek/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/phy/mediatek/Kconfig b/drivers/phy/mediatek/Kconfig
index 9beffd1..7cfc732 100644
--- a/drivers/phy/mediatek/Kconfig
+++ b/drivers/phy/mediatek/Kconfig
@@ -108,5 +108,6 @@ config PHY_MTK_DP
depends on ARCH_MEDIATEK || COMPILE_TEST
depends on OF
select GENERIC_PHY
+ select REGMAP_MMIO
help
Support DisplayPort PHY for MediaTek SoCs.
base-commit: fe6ff8d5d675c01793b9f051d16055dd4aa75244