From: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
To: Chen-Yu Tsai <wenst@chromium.org>,
Frank Binns <frank.binns@imgtec.com>,
Matt Coster <matt.coster@imgtec.com>,
Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
Maxime Ripard <mripard@kernel.org>,
Thomas Zimmermann <tzimmermann@suse.de>,
Stephen Boyd <sboyd@kernel.org>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Matthias Brugger <matthias.bgg@gmail.com>
Cc: David Airlie <airlied@gmail.com>, Daniel Vetter <daniel@ffwll.ch>,
dri-devel@lists.freedesktop.org, linux-clk@vger.kernel.org,
devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 5/6] arm64: dts: mediatek: mt8173: Fix MFG_ASYNC power domain clock
Date: Thu, 30 May 2024 12:03:41 +0200 [thread overview]
Message-ID: <4f20f130-c9ab-43ea-a758-e29d7be10db0@collabora.com> (raw)
In-Reply-To: <20240530083513.4135052-6-wenst@chromium.org>
Il 30/05/24 10:35, Chen-Yu Tsai ha scritto:
> The MFG_ASYNC domain, which is likely associated to the whole MFG block,
> currently specifies clk26m as its domain clock. This is bogus, since the
> clock is an external crystal with no controls. Also, the MFG block has
> a independent CLK_TOP_AXI_MFG_IN_SEL clock, which according to the block
> diagram, gates access to the hardware registers. Having this one as the
> domain clock makes much more sense. This also fixes access to the MFGTOP
> registers.
>
> Change the MFG_ASYNC domain clock to CLK_TOP_AXI_MFG_IN_SEL.
>
> Fixes: 8b6562644df9 ("arm64: dts: mediatek: Add mt8173 power domain controller")
> Signed-off-by: Chen-Yu Tsai <wenst@chromium.org>
Just one question... what happens if there's no GPU support at all and this
power domain gets powered off?
I expect the answer to be "nothing", so I'm preventively giving you my
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
....but if I'm wrong and the answer isn't exactly "nothing", then I still agree
with this commit, but only after removing the Fixes tag.
Cheers,
Angelo
> ---
> arch/arm64/boot/dts/mediatek/mt8173.dtsi | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi b/arch/arm64/boot/dts/mediatek/mt8173.dtsi
> index 3458be7f7f61..136b28f80cc2 100644
> --- a/arch/arm64/boot/dts/mediatek/mt8173.dtsi
> +++ b/arch/arm64/boot/dts/mediatek/mt8173.dtsi
> @@ -497,7 +497,7 @@ power-domain@MT8173_POWER_DOMAIN_USB {
> };
> mfg_async: power-domain@MT8173_POWER_DOMAIN_MFG_ASYNC {
> reg = <MT8173_POWER_DOMAIN_MFG_ASYNC>;
> - clocks = <&clk26m>;
> + clocks = <&topckgen CLK_TOP_AXI_MFG_IN_SEL>;
> clock-names = "mfg";
> #address-cells = <1>;
> #size-cells = <0>;
next prev parent reply other threads:[~2024-05-30 10:03 UTC|newest]
Thread overview: 40+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-30 8:34 [PATCH 0/6] powervr: MT8173 GPU support Chen-Yu Tsai
2024-05-30 8:35 ` [PATCH 1/6] dt-bindings: clock: mediatek: Add mt8173 mfgtop Chen-Yu Tsai
2024-05-30 15:43 ` Conor Dooley
2024-05-31 7:29 ` Chen-Yu Tsai
2024-05-31 14:58 ` Conor Dooley
2024-05-30 8:35 ` [PATCH 2/6] clk: mediatek: Add mt8173-mfgtop driver Chen-Yu Tsai
2024-05-30 9:59 ` AngeloGioacchino Del Regno
2024-05-30 10:16 ` Chen-Yu Tsai
2024-05-30 12:48 ` AngeloGioacchino Del Regno
2024-05-31 11:17 ` Frank Binns
2024-06-05 8:39 ` Chen-Yu Tsai
2024-06-05 11:26 ` AngeloGioacchino Del Regno
2024-05-30 16:15 ` kernel test robot
2024-05-30 16:26 ` kernel test robot
2024-05-30 18:03 ` kernel test robot
2024-05-30 8:35 ` [PATCH 3/6] dt-bindings: gpu: powervr-rogue: Add MediaTek MT8173 GPU Chen-Yu Tsai
2024-05-30 10:03 ` AngeloGioacchino Del Regno
2024-05-30 15:38 ` Conor Dooley
2024-05-31 13:37 ` Frank Binns
2024-05-31 14:24 ` Adam Ford
2024-06-04 4:21 ` Chen-Yu Tsai
2024-06-04 4:18 ` Chen-Yu Tsai
2024-06-13 9:10 ` Chen-Yu Tsai
2024-06-13 13:23 ` Adam Ford
2024-05-30 8:35 ` [PATCH 4/6] drm/imagination: Add compatible string entry for Series6XT Chen-Yu Tsai
2024-05-30 10:03 ` AngeloGioacchino Del Regno
2024-05-31 11:18 ` Frank Binns
2024-06-03 3:29 ` Chen-Yu Tsai
2024-06-03 7:45 ` Steven Price
2024-08-10 12:39 ` Icenowy Zheng
2024-05-30 8:35 ` [PATCH 5/6] arm64: dts: mediatek: mt8173: Fix MFG_ASYNC power domain clock Chen-Yu Tsai
2024-05-30 10:03 ` AngeloGioacchino Del Regno [this message]
2024-06-05 8:25 ` Chen-Yu Tsai
2024-06-05 11:25 ` AngeloGioacchino Del Regno
2024-06-06 3:28 ` Chen-Yu Tsai
2024-05-30 8:35 ` [PATCH 6/6] arm64: dts: mediatek: mt8173: Add GPU device nodes Chen-Yu Tsai
2024-05-30 10:04 ` AngeloGioacchino Del Regno
2024-05-31 4:00 ` [PATCH 0/6] powervr: MT8173 GPU support Chen-Yu Tsai
2024-05-31 11:15 ` Frank Binns
2024-06-02 19:53 ` Adam Ford
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=4f20f130-c9ab-43ea-a758-e29d7be10db0@collabora.com \
--to=angelogioacchino.delregno@collabora.com \
--cc=airlied@gmail.com \
--cc=conor+dt@kernel.org \
--cc=daniel@ffwll.ch \
--cc=devicetree@vger.kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=frank.binns@imgtec.com \
--cc=krzk+dt@kernel.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=maarten.lankhorst@linux.intel.com \
--cc=matt.coster@imgtec.com \
--cc=matthias.bgg@gmail.com \
--cc=mripard@kernel.org \
--cc=robh@kernel.org \
--cc=sboyd@kernel.org \
--cc=tzimmermann@suse.de \
--cc=wenst@chromium.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;
as well as URLs for NNTP newsgroup(s).