From: Krzysztof Kozlowski <krzk@kernel.org>
To: Peter Griffin <peter.griffin@linaro.org>,
Krzysztof Kozlowski <krzk@kernel.org>
Cc: "Rob Herring" <robh@kernel.org>,
"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
"Conor Dooley" <conor+dt@kernel.org>,
"Alim Akhtar" <alim.akhtar@samsung.com>,
"André Draszik" <andre.draszik@linaro.org>,
"Tudor Ambarus" <tudor.ambarus@linaro.org>,
"Michael Turquette" <mturquette@baylibre.com>,
"Stephen Boyd" <sboyd@kernel.org>,
"Sam Protsenko" <semen.protsenko@linaro.org>,
"Sylwester Nawrocki" <s.nawrocki@samsung.com>,
"Chanwoo Choi" <cw00.choi@samsung.com>,
"Will McVicker" <willmcvicker@google.com>,
devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-clk@vger.kernel.org, kernel-team@android.com
Subject: Re: [PATCH 8/9] clk: samsung: gs101: Enable auto_clock_gate mode for each gs101 CMU
Date: Wed, 22 Oct 2025 07:45:49 +0200 [thread overview]
Message-ID: <25d6b64c-41b6-4431-870c-0b26d0cc4d03@kernel.org> (raw)
In-Reply-To: <CADrjBPov=7t876dqpTS71j_xNFOrJv7_Ym7abYVLzjypoOYKng@mail.gmail.com>
On 21/10/2025 23:03, Peter Griffin wrote:
>>> +}
>>> +
>>> static void __init gs101_cmu_misc_init(struct device_node *np)
>>> {
>>> + if (check_cmu_res_size(np))
>>> + return;
>>
>> You will not register CMU on old DTB.
>
> By "compatible" I meant the driver detects an old DTB with an
> incorrect reg size and issues an error message on the console to
> update your DT (as opposed to crashing trying to access a register
> that hasn't been mapped).
That's not being compatible. You should not break anything here if size
is smaller - just fallback to previous manual mode.
>
> Is it enough to re-word the commit message to make it clearer what will happen?
>
> An alternative might be to try registering all the gates in manual
> mode, but that seems like it would add more complexity for not much
> benefit. It would also require that clk_ignore_unused kernel parameter
> to have been passed (as manual clock mode has never worked without it)
> and whilst it might boot today I imagine it would bitrot fast as
> additional CMUs are added (and thus probably crash in a much more
> obscure way).
>
> Peter
Best regards,
Krzysztof
next prev parent reply other threads:[~2025-10-22 5:45 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-13 20:51 [PATCH 0/9] Implement hardware automatic clock gating (HWACG) for gs101 Peter Griffin
2025-10-13 20:51 ` [PATCH 1/9] dt-bindings: soc: samsung: exynos-sysreg: add gs101 hsi0 and misc compatibles Peter Griffin
2025-10-15 18:31 ` Rob Herring (Arm)
2025-10-16 5:44 ` André Draszik
2025-10-21 19:27 ` (subset) " Krzysztof Kozlowski
2025-10-13 20:51 ` [PATCH 2/9] dt-bindings: clock: google,gs101-clock: add samsung,sysreg property as required Peter Griffin
2025-10-15 18:32 ` Rob Herring (Arm)
2025-10-16 5:53 ` André Draszik
2025-10-21 19:22 ` Krzysztof Kozlowski
2025-10-13 20:51 ` [PATCH 3/9] arm64: dts: exynos: gs101: add sysreg_misc and sysreg_hsi0 nodes Peter Griffin
2025-10-16 5:56 ` André Draszik
2025-10-21 19:27 ` (subset) " Krzysztof Kozlowski
2025-10-13 20:51 ` [PATCH 4/9] arm64: dts: exynos: gs101: fix clock module unit reg sizes Peter Griffin
2025-10-16 8:22 ` André Draszik
2025-10-21 19:27 ` (subset) " Krzysztof Kozlowski
2025-10-13 20:51 ` [PATCH 5/9] arm64: dts: exynos: gs101: fix sysreg_apm reg property Peter Griffin
2025-10-16 8:23 ` André Draszik
2025-10-21 19:27 ` (subset) " Krzysztof Kozlowski
2025-10-13 20:51 ` [PATCH 6/9] arm64: dts: exynos: gs101: add samsung,sysreg property to CMU nodes Peter Griffin
2025-10-13 20:51 ` [PATCH 7/9] clk: samsung: Implement automatic clock gating mode for CMUs Peter Griffin
2025-10-14 14:46 ` kernel test robot
2025-10-16 9:40 ` André Draszik
2025-10-28 8:50 ` Peter Griffin
2025-10-21 19:45 ` Krzysztof Kozlowski
2025-10-28 9:29 ` Peter Griffin
2025-10-13 20:51 ` [PATCH 8/9] clk: samsung: gs101: Enable auto_clock_gate mode for each gs101 CMU Peter Griffin
2025-10-21 19:47 ` Krzysztof Kozlowski
2025-10-21 21:03 ` Peter Griffin
2025-10-22 5:45 ` Krzysztof Kozlowski [this message]
2025-10-13 20:51 ` [PATCH 9/9] clk: samsung: gs101: remove CLK_IGNORE_UNUSED and CLK_IS_CRITICAL flags Peter Griffin
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=25d6b64c-41b6-4431-870c-0b26d0cc4d03@kernel.org \
--to=krzk@kernel.org \
--cc=alim.akhtar@samsung.com \
--cc=andre.draszik@linaro.org \
--cc=conor+dt@kernel.org \
--cc=cw00.choi@samsung.com \
--cc=devicetree@vger.kernel.org \
--cc=kernel-team@android.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-samsung-soc@vger.kernel.org \
--cc=mturquette@baylibre.com \
--cc=peter.griffin@linaro.org \
--cc=robh@kernel.org \
--cc=s.nawrocki@samsung.com \
--cc=sboyd@kernel.org \
--cc=semen.protsenko@linaro.org \
--cc=tudor.ambarus@linaro.org \
--cc=willmcvicker@google.com \
/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®