From: Pengpeng Hou <hppiscas@163.com>
To: chunfeng.yun@mediatek.com
Cc: vkoul@kernel.org, neil.armstrong@linaro.org, mani@kernel.org,
chunkuang.hu@kernel.org, p.zabel@pengutronix.de,
matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com,
linux-arm-kernel@lists.infradead.org,
linux-mediatek@lists.infradead.org,
linux-phy@lists.infradead.org, dri-devel@lists.freedesktop.org,
linux-kernel@vger.kernel.org, hppiscas@163.com
Subject: [PATCH] phy: mediatek: dp: select REGMAP_MMIO
Date: Mon, 30 Nov 2026 21:34:59 +0800 [thread overview]
Message-ID: <20261130133459.85739-1-hppiscas@163.com> (raw)
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
reply other threads:[~2026-11-30 13:36 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261130133459.85739-1-hppiscas@163.com \
--to=hppiscas@163.com \
--cc=angelogioacchino.delregno@collabora.com \
--cc=chunfeng.yun@mediatek.com \
--cc=chunkuang.hu@kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=linux-phy@lists.infradead.org \
--cc=mani@kernel.org \
--cc=matthias.bgg@gmail.com \
--cc=neil.armstrong@linaro.org \
--cc=p.zabel@pengutronix.de \
--cc=vkoul@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®