Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] phy: mediatek: dp: select REGMAP_MMIO
@ 2026-11-30 13:34 Pengpeng Hou
  0 siblings, 0 replies; only message in thread
From: Pengpeng Hou @ 2026-11-30 13:34 UTC (permalink / raw)
  To: chunfeng.yun
  Cc: vkoul, neil.armstrong, mani, chunkuang.hu, p.zabel, matthias.bgg,
	angelogioacchino.delregno, linux-arm-kernel, linux-mediatek,
	linux-phy, dri-devel, linux-kernel, hppiscas

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@163.com>
---
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



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-30 14:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-30 13:34 [PATCH] phy: mediatek: dp: select REGMAP_MMIO Pengpeng Hou

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox