From: Laura Nao <laura.nao@collabora.com>
To: aford173@gmail.com
Cc: angelogioacchino.delregno@collabora.com, broonie@kernel.org,
laura.nao@collabora.com, lgirdwood@gmail.com,
linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org,
linux-pm@vger.kernel.org, matthias.bgg@gmail.com,
mturquette@baylibre.com, nfraprado@collabora.com,
sboyd@kernel.org, ulf.hansson@linaro.org
Subject: Re: [PATCH 5/5] drivers: clk: mediatek: Fix error finding regmap
Date: Tue, 10 Feb 2026 17:14:57 +0100 [thread overview]
Message-ID: <20260210161457.43020-1-laura.nao@collabora.com> (raw)
In-Reply-To: <20260210053708.17239-5-aford173@gmail.com>
Hi,
On 2/10/26 06:37, Adam Ford wrote:
> The clock driver for clk-mt8196-vdisp-ao doesn't use the same common clk
> functions that other clocks use. As such, this clock returns an error:
>
> Cannot find regmap for /soc: -ENOMEM
> clk-mt8196-vdisp-ao 3e800000.syscon: probe with driver clk-mt8196-vdisp-ao failed with error -12
>
> Fix this by using the common clock calls. With this patch, the following
> new clocks properly enumerate:
>
> mm_v_disp_vdisp_ao_config
> mm_v_disp_dpc
> mm_v_smi_sub_somm0
>
> Fixes: d4fb7e15a520 ("clk: mediatek: Add MT8196 disp-ao clock support")
> Signed-off-by: Adam Ford <aford173@gmail.com>
> ---
> drivers/clk/mediatek/clk-mt8196-vdisp_ao.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/clk/mediatek/clk-mt8196-vdisp_ao.c b/drivers/clk/mediatek/clk-mt8196-vdisp_ao.c
> index fddb69d1c3eb..070c60f40b64 100644
> --- a/drivers/clk/mediatek/clk-mt8196-vdisp_ao.c
> +++ b/drivers/clk/mediatek/clk-mt8196-vdisp_ao.c
> @@ -67,8 +67,8 @@ static const struct of_device_id of_match_clk_mt8196_vdisp_ao[] = {
> MODULE_DEVICE_TABLE(of, of_match_clk_mt8196_vdisp_ao);
>
> static struct platform_driver clk_mt8196_vdisp_ao_drv = {
> - .probe = mtk_clk_pdev_probe,
> - .remove = mtk_clk_pdev_remove,
> + .probe = mtk_clk_simple_probe,
> + .remove = mtk_clk_simple_remove,
> .driver = {
> .name = "clk-mt8196-vdisp-ao",
> .of_match_table = of_match_clk_mt8196_vdisp_ao,
This driver is actually expected to be registered by the mtk-mmsys
driver via platform_device_register_data() (related changes are in a
pending series [1]), which is why it is probed via mtk_clk_pdev_probe.
[1] https://lore.kernel.org/all/20250828080855.3502514-8-paul-pl.chen@mediatek.com/
Best,
Laura
next prev parent reply other threads:[~2026-02-10 16:15 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-10 5:37 [PATCH 1/5] pmdomain: mediatek: Fix power domain count Adam Ford
2026-02-10 5:37 ` [PATCH 2/5] clk: mediatek: Fix MT8196 topckgen2 orphan clocks Adam Ford
2026-02-10 16:10 ` Laura Nao
2026-02-10 5:37 ` [PATCH 3/5] clk: mediatek: Fix MT8196 topckgen orphan clock Adam Ford
2026-02-10 16:12 ` Laura Nao
2026-02-10 5:37 ` [PATCH 4/5] regulator: mt6363: Fix interrmittent timeout Adam Ford
2026-02-10 13:46 ` Mark Brown
2026-02-10 5:37 ` [PATCH 5/5] drivers: clk: mediatek: Fix error finding regmap Adam Ford
2026-02-10 16:14 ` Laura Nao [this message]
2026-02-10 16:19 ` (subset) [PATCH 1/5] pmdomain: mediatek: Fix power domain count Mark Brown
2026-02-12 11:34 ` Ulf Hansson
2026-03-06 9:50 ` AngeloGioacchino Del Regno
2026-03-11 17:29 ` Ulf Hansson
2026-03-12 12:46 ` AngeloGioacchino Del Regno
2026-03-12 14:42 ` Ulf Hansson
2026-03-12 15:07 ` AngeloGioacchino Del Regno
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=20260210161457.43020-1-laura.nao@collabora.com \
--to=laura.nao@collabora.com \
--cc=aford173@gmail.com \
--cc=angelogioacchino.delregno@collabora.com \
--cc=broonie@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=linux-pm@vger.kernel.org \
--cc=matthias.bgg@gmail.com \
--cc=mturquette@baylibre.com \
--cc=nfraprado@collabora.com \
--cc=sboyd@kernel.org \
--cc=ulf.hansson@linaro.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