Skip to contentSkip to conversation

phy: mediatek: dp: select REGMAP_MMIO

PATCH New Pengpeng Hou 1 participant 1 message Nov 30

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 phy: mediatek: dp: select REGMAP_MMIO

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")

---
AI assistance: gpt 5 (patch preparation and review).

 drivers/phy/mediatek/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/phy/mediatek/Kconfig +1 -0
index 9beffd1..7cfc732 100644
@@ -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