mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Gabriel FERNANDEZ <gabriel.fernandez@foss.st.com>
To: Krzysztof Kozlowski <krzk@kernel.org>
Cc: Stephen Boyd <sboyd@kernel.org>,
	Brian Masney <bmasney+clk@redhat.com>,
	Jerome Brunet <jbrunet+clk@baylibre.com>,
	Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Maxime Coquelin <mcoquelin.stm32@gmail.com>,
	Alexandre Torgue <alexandre.torgue@foss.st.com>,
	<linux-clk@vger.kernel.org>, <devicetree@vger.kernel.org>,
	<linux-stm32@st-md-mailman.stormreply.com>,
	<linux-arm-kernel@lists.infradead.org>,
	<linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v4 8/8] dt-bindings: stm32: use reference manual names for ETR and STM bus clocks
Date: Tue, 24 Nov 2026 17:17:41 +0100	[thread overview]
Message-ID: <ecbfc73c-2961-4e05-870c-cffae1d4cf60@foss.st.com> (raw)
In-Reply-To: <179553246414.44164.14668877546162285849.b4-review@b4>

Hi Krzysztof,


On 11/24/26 16:01, Krzysztof Kozlowski wrote:
>> The bus clocks of the STM and of the ETR are identified by CK_BUS_STM500,
>> CK_SCMI_STM500 and CK_SCMI_ETR. Now that their kernel clocks are
>> described as CK_KER_STM and CK_KER_ETR, and as the RCC bus clock of the
>> ETR is already CK_BUS_ETR, these names are confusing. They also differ
>> from the reference manual and from the STM32MP21 binding, which uses
>> CK_BUS_STM, CK_SCMI_BUS_ETR and CK_SCMI_BUS_STM for the same clocks.
>>
>> Use CK_BUS_STM, CK_SCMI_BUS_ETR and CK_SCMI_BUS_STM, with unchanged
>> values, and keep the old names as deprecated aliases so that the
>> existing users are not affected.
>>
>> No functional change.
> That's ABI break, so clearly not true. Users of this ABI - this header -
> did compile before, now they don't.
Thanks for the review. Existing users should still compile: the patch keeps
the three old names as aliases at the end of the header:

+/* Deprecated identifiers, kept for backward compatibility */
+#define CK_BUS_STM500        CK_BUS_STM
+#define CK_SCMI_ETR        CK_SCMI_BUS_ETR
+#define CK_SCMI_STM500        CK_SCMI_BUS_STM

Old and new names expand to the same values (89, 87 and 122, unchanged
from before the patch), so neither the DTS/C sources using the old names
nor the DTB ABI are affected.

That said, you are right that "No functional change" does not describe
the ABI impact. I will make it explicit in v5:

   ABI impact: none. The numerical values are unchanged, so the binary
   ABI is not affected. The old names are kept as aliases of the new ones,
   so existing sources including this header still build. They are
   deprecated and new users should use the new names.

If you would rather not rename the identifiers at all, I can drop this
patch. It is the last one of the series and independent from patches 1-7.

Best regards,

Gabriel


> ABI impact must be explicit in commit msg.
>
> Best regards,
> Krzysztof
>

      reply	other threads:[~2026-11-24 16:17 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-06 16:16 [PATCH v4 0/8] clk: stm32mp25: add Cortex-M0 D3 clocks, ETR/STM and USB2PHY1 STP Gabriel Fernandez
2026-11-06 16:16 ` [PATCH v4 1/8] clk: stm32mp25: define the number of clocks in the driver Gabriel Fernandez
2026-11-06 16:16 ` [PATCH v4 2/8] dt-bindings: stm32: add kernel clocks for ETR and STM Gabriel Fernandez
2026-11-09 12:27   ` Krzysztof Kozlowski
2026-11-06 16:16 ` [PATCH v4 3/8] clk: stm32mp25: update register with reference manual Gabriel Fernandez
2026-11-06 16:16 ` [PATCH v4 4/8] dt-bindings: stm32: add clocks for Cortex-CM0 on stm32mp25 Gabriel Fernandez
2026-11-09 12:27   ` Krzysztof Kozlowski
2026-11-06 16:16 ` [PATCH v4 5/8] clk: stm32mp25: add clock for D3 peripherals allocation for Cortex-CM0 Gabriel Fernandez
2026-11-06 16:16 ` [PATCH v4 6/8] dt-bindings: stm32: add usb2phy1stp clock on stm32mp25 Gabriel Fernandez
2026-11-06 16:16 ` [PATCH v4 7/8] clk: stm32mp25: add ck_ker_usb2phy1_stp clock Gabriel Fernandez
2026-11-06 16:16 ` [PATCH v4 8/8] dt-bindings: stm32: use reference manual names for ETR and STM bus clocks Gabriel Fernandez
2026-11-11 22:32   ` Brian Masney
2026-11-19 15:03     ` [PATCH v4 8/8] dt-bindings: stm32: use reference manual names for ETR and STM bus clocks (ATTN: Krzysztof) Brian Masney
2026-11-24 15:01   ` [PATCH v4 8/8] dt-bindings: stm32: use reference manual names for ETR and STM bus clocks Krzysztof Kozlowski
2026-11-24 16:17     ` Gabriel FERNANDEZ [this message]

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=ecbfc73c-2961-4e05-870c-cffae1d4cf60@foss.st.com \
    --to=gabriel.fernandez@foss.st.com \
    --cc=alexandre.torgue@foss.st.com \
    --cc=bmasney+clk@redhat.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=jbrunet+clk@baylibre.com \
    --cc=krzk+dt@kernel.org \
    --cc=krzk@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-clk@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-stm32@st-md-mailman.stormreply.com \
    --cc=mcoquelin.stm32@gmail.com \
    --cc=robh@kernel.org \
    --cc=sboyd@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®