From: Stephen Boyd <sboyd@kernel.org>
To: Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Matthias Brugger <matthias.bgg@gmail.com>,
Michael Turquette <mturquette@baylibre.com>,
Moudy Ho <moudy.ho@mediatek.com>,
Rob Herring <robh+dt@kernel.org>
Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-mediatek@lists.infradead.org, linux-clk@vger.kernel.org,
Project_Global_Chrome_Upstream_Group@mediatek.com,
Moudy Ho <moudy.ho@mediatek.com>,
AngeloGioacchino Del Regno
<angelogioacchino.delregno@collabora.com>
Subject: Re: [PATCH v6 3/4] clk: mediatek: remove MT8195 vppsys/0/1 simple_probe
Date: Mon, 30 Jan 2023 11:36:09 -0800 [thread overview]
Message-ID: <fe49e8b642c4c33fee37e97d957c37a3.sboyd@kernel.org> (raw)
In-Reply-To: <20230118031509.29834-4-moudy.ho@mediatek.com>
Quoting Moudy Ho (2023-01-17 19:15:08)
> diff --git a/drivers/clk/mediatek/clk-mt8195-vpp0.c b/drivers/clk/mediatek/clk-mt8195-vpp0.c
> index bf2939c3a023..6d5800f69f6c 100644
> --- a/drivers/clk/mediatek/clk-mt8195-vpp0.c
> +++ b/drivers/clk/mediatek/clk-mt8195-vpp0.c
> @@ -86,26 +86,54 @@ static const struct mtk_gate vpp0_clks[] = {
> GATE_VPP0_2(CLK_VPP0_WARP1_MDP_DL_ASYNC, "vpp0_warp1_mdp_dl_async", "top_wpe_vpp", 3),
> };
>
> -static const struct mtk_clk_desc vpp0_desc = {
> - .clks = vpp0_clks,
> - .num_clks = ARRAY_SIZE(vpp0_clks),
> -};
> +static int clk_mt8195_vpp0_probe(struct platform_device *pdev)
> +{
> + struct device *dev = &pdev->dev;
> + struct device_node *node = dev->parent->of_node;
> + struct clk_onecell_data *clk_data;
> + int r;
>
> -static const struct of_device_id of_match_clk_mt8195_vpp0[] = {
> - {
> - .compatible = "mediatek,mt8195-vppsys0",
> - .data = &vpp0_desc,
> - }, {
> - /* sentinel */
> - }
> -};
> + clk_data = mtk_alloc_clk_data(CLK_VPP0_NR_CLK);
> + if (!clk_data)
> + return -ENOMEM;
> +
> + r = mtk_clk_register_gates(node, vpp0_clks, ARRAY_SIZE(vpp0_clks), clk_data);
This API is wrecked by a patch from AngeloGioacchino. Can you resend, or
tell me which device should be used here?
WARNING: multiple messages have this Message-ID (diff)
From: Stephen Boyd <sboyd@kernel.org>
To: Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Matthias Brugger <matthias.bgg@gmail.com>,
Michael Turquette <mturquette@baylibre.com>,
Moudy Ho <moudy.ho@mediatek.com>,
Rob Herring <robh+dt@kernel.org>
Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-mediatek@lists.infradead.org, linux-clk@vger.kernel.org,
Project_Global_Chrome_Upstream_Group@mediatek.com,
Moudy Ho <moudy.ho@mediatek.com>,
AngeloGioacchino Del Regno
<angelogioacchino.delregno@collabora.com>
Subject: Re: [PATCH v6 3/4] clk: mediatek: remove MT8195 vppsys/0/1 simple_probe
Date: Mon, 30 Jan 2023 11:36:09 -0800 [thread overview]
Message-ID: <fe49e8b642c4c33fee37e97d957c37a3.sboyd@kernel.org> (raw)
In-Reply-To: <20230118031509.29834-4-moudy.ho@mediatek.com>
Quoting Moudy Ho (2023-01-17 19:15:08)
> diff --git a/drivers/clk/mediatek/clk-mt8195-vpp0.c b/drivers/clk/mediatek/clk-mt8195-vpp0.c
> index bf2939c3a023..6d5800f69f6c 100644
> --- a/drivers/clk/mediatek/clk-mt8195-vpp0.c
> +++ b/drivers/clk/mediatek/clk-mt8195-vpp0.c
> @@ -86,26 +86,54 @@ static const struct mtk_gate vpp0_clks[] = {
> GATE_VPP0_2(CLK_VPP0_WARP1_MDP_DL_ASYNC, "vpp0_warp1_mdp_dl_async", "top_wpe_vpp", 3),
> };
>
> -static const struct mtk_clk_desc vpp0_desc = {
> - .clks = vpp0_clks,
> - .num_clks = ARRAY_SIZE(vpp0_clks),
> -};
> +static int clk_mt8195_vpp0_probe(struct platform_device *pdev)
> +{
> + struct device *dev = &pdev->dev;
> + struct device_node *node = dev->parent->of_node;
> + struct clk_onecell_data *clk_data;
> + int r;
>
> -static const struct of_device_id of_match_clk_mt8195_vpp0[] = {
> - {
> - .compatible = "mediatek,mt8195-vppsys0",
> - .data = &vpp0_desc,
> - }, {
> - /* sentinel */
> - }
> -};
> + clk_data = mtk_alloc_clk_data(CLK_VPP0_NR_CLK);
> + if (!clk_data)
> + return -ENOMEM;
> +
> + r = mtk_clk_register_gates(node, vpp0_clks, ARRAY_SIZE(vpp0_clks), clk_data);
This API is wrecked by a patch from AngeloGioacchino. Can you resend, or
tell me which device should be used here?
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2023-01-30 19:36 UTC|newest]
Thread overview: 42+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-18 3:15 [PATCH v6 0/4] Migrate MT8195 VPPSYS 0/1 to mtk-mmsys driver Moudy Ho
2023-01-18 3:15 ` Moudy Ho
2023-01-18 3:15 ` [PATCH v6 1/4] dt-bindings: arm: mediatek: migrate MT8195 vppsys0/1 " Moudy Ho
2023-01-18 3:15 ` Moudy Ho
2023-01-19 11:14 ` Krzysztof Kozlowski
2023-01-19 11:14 ` Krzysztof Kozlowski
2023-01-19 16:08 ` Matthias Brugger
2023-01-19 16:08 ` Matthias Brugger
2023-01-26 2:05 ` Stephen Boyd
2023-01-26 2:05 ` Stephen Boyd
2023-01-26 14:32 ` Matthias Brugger
2023-01-26 14:32 ` Matthias Brugger
2023-01-26 14:33 ` Matthias Brugger
2023-01-26 14:33 ` Matthias Brugger
2023-01-27 23:20 ` Stephen Boyd
2023-01-27 23:20 ` Stephen Boyd
2023-01-18 3:15 ` [PATCH v6 2/4] dt-bindings: arm: mediatek: mmsys: Add support for MT8195 VPPSYS Moudy Ho
2023-01-18 3:15 ` Moudy Ho
2023-01-18 15:59 ` Rob Herring
2023-01-18 15:59 ` Rob Herring
2023-01-30 11:27 ` Matthias Brugger
2023-01-30 11:27 ` Matthias Brugger
2023-01-18 3:15 ` [PATCH v6 3/4] clk: mediatek: remove MT8195 vppsys/0/1 simple_probe Moudy Ho
2023-01-18 3:15 ` Moudy Ho
2023-01-19 15:50 ` Matthias Brugger
2023-01-19 15:50 ` Matthias Brugger
2023-01-27 23:20 ` Stephen Boyd
2023-01-27 23:20 ` Stephen Boyd
2023-01-30 19:36 ` Stephen Boyd [this message]
2023-01-30 19:36 ` Stephen Boyd
2023-01-31 1:57 ` Moudy Ho (何宗原)
2023-01-31 1:57 ` Moudy Ho (何宗原)
2023-01-31 8:33 ` AngeloGioacchino Del Regno
2023-01-31 8:33 ` AngeloGioacchino Del Regno
2023-01-31 9:50 ` Chen-Yu Tsai
2023-01-31 9:50 ` Chen-Yu Tsai
2023-02-07 1:58 ` Moudy Ho (何宗原)
2023-02-07 1:58 ` Moudy Ho (何宗原)
2023-01-18 3:15 ` [PATCH v6 4/4] soc: mediatek: mmsys: add support for MT8195 VPPSYS Moudy Ho
2023-01-18 3:15 ` Moudy Ho
2023-01-30 11:28 ` Matthias Brugger
2023-01-30 11:28 ` Matthias Brugger
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=fe49e8b642c4c33fee37e97d957c37a3.sboyd@kernel.org \
--to=sboyd@kernel.org \
--cc=Project_Global_Chrome_Upstream_Group@mediatek.com \
--cc=angelogioacchino.delregno@collabora.com \
--cc=devicetree@vger.kernel.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--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=matthias.bgg@gmail.com \
--cc=moudy.ho@mediatek.com \
--cc=mturquette@baylibre.com \
--cc=robh+dt@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.