From: Mark Brown <broonie@kernel.org>
To: David Collins <quic_collinsd@quicinc.com>
Cc: Sudeep Holla <sudeep.holla@arm.com>,
Rob Herring <robh+dt@kernel.org>,
Liam Girdwood <lgirdwood@gmail.com>,
devicetree@vger.kernel.org,
Cristian Marussi <cristian.marussi@arm.com>,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org,
Subbaraman Narayanamurthy <quic_subbaram@quicinc.com>,
Stephen Boyd <sboyd@kernel.org>,
Mike Tipton <quic_mdtipton@quicinc.com>
Subject: Re: [PATCH v2 0/2] regulator: scmi: add support for registering SCMI regulators by name
Date: Thu, 24 Mar 2022 17:23:05 +0000 [thread overview]
Message-ID: <Yjyo+Xk0txZs4T/Z@sirena.org.uk> (raw)
In-Reply-To: <eb03037b-e7c2-ea23-0bdb-27924ed54fa7@quicinc.com>
[-- Attachment #1: Type: text/plain, Size: 1516 bytes --]
On Tue, Mar 22, 2022 at 06:12:33PM -0700, David Collins wrote:
> Another problem is that, as with regulators, ID numbers could
> unknowingly get out of sync between the platform and the agent. Using
> clock domain names for referencing fixes both issues. This can be
This is just saying that the hard coded IDs that the firmware and kernel
use to communicate can get out of sync which is true no matter if those
IDs are strings or if they're numerical, either way it's an ABI which
can be broken.
> > If the IDs are correct like the names, it is guaranteed. I see this
> > ID vs name is more for some maintenance convenience because somewhere
> > something else needs to changes or moved away from existing way of
> > maintenance.
> How do you quantify an ID number to physical regulator mapping as
> "correct"? What happens if the mapping must be changed on the SCMI
> platform side (e.g. a PMIC was added or removed, or the order that
> regulators are listed in needs to change)? If the SCMI agent is blindly
The whole point with the numbers being an ABI is that things must never
be renumbered, just as if names are used the names can't be changed. If
the numbering is changing that just sounds like bugs on the platform
side. There's an implicit assumption in what you've written above that
implementation details of the firmware should affect the IDs presented
through SCMI which simply shouldn't be true, and indeed if the firmware
can assign fixed strings it can just as well assign fixed numbers.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
next prev parent reply other threads:[~2022-03-24 17:23 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-22 0:47 [PATCH v2 0/2] regulator: scmi: add support for registering SCMI regulators by name David Collins
2022-03-22 0:47 ` [PATCH v2 1/2] dt-bindings: firmware: arm,scmi: define support for name based regulators David Collins
2022-03-22 0:47 ` [PATCH v2 2/2] regulator: scmi: add support for registering SCMI regulators by name David Collins
2022-03-22 11:40 ` [PATCH v2 0/2] " Sudeep Holla
2022-03-23 1:12 ` David Collins
2022-03-24 17:23 ` Mark Brown [this message]
2022-03-25 10:35 ` Cristian Marussi
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=Yjyo+Xk0txZs4T/Z@sirena.org.uk \
--to=broonie@kernel.org \
--cc=cristian.marussi@arm.com \
--cc=devicetree@vger.kernel.org \
--cc=lgirdwood@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=quic_collinsd@quicinc.com \
--cc=quic_mdtipton@quicinc.com \
--cc=quic_subbaram@quicinc.com \
--cc=robh+dt@kernel.org \
--cc=sboyd@kernel.org \
--cc=sudeep.holla@arm.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