From: Rob Herring <robh@kernel.org>
To: "Peng Fan (OSS)" <peng.fan@oss.nxp.com>
Cc: sudeep.holla@arm.com, cristian.marussi@arm.com,
saravanak@google.com, krzk+dt@kernel.org, conor+dt@kernel.org,
arm-scmi@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
Peng Fan <peng.fan@nxp.com>
Subject: Re: [RFC] dt-bindings: firmware: scmi: Introduce compatible string
Date: Wed, 26 Feb 2025 10:09:45 -0600 [thread overview]
Message-ID: <20250226160945.GA2505223-robh@kernel.org> (raw)
In-Reply-To: <20250226094456.2351571-1-peng.fan@oss.nxp.com>
On Wed, Feb 26, 2025 at 05:44:56PM +0800, Peng Fan (OSS) wrote:
> From: Peng Fan <peng.fan@nxp.com>
>
> Add compatible string for the protocols by adding new nodes
> The current nodename pattern is "protocol@[0-9a-f]+$", the new node
> name will be "scmi-[a-z\-]+$".
> With compatible string and new nodename, cpufreq and devfreq could be
> separated into two nodes. And fwdevlink could correctly link suppliers
> and consumers.
> With compatible string, and driver updated.
> - Differnet vendor drivers with same SCMI protocol ID could be built in
> without concerning vendor A's driver got probed when using vendor B's
> SoC
> - NXP scmi pinctrl and ARM scmi pinctrl could be both built in, without
> concerning arm scmi platform takes nxp scmi pinctrl node as supplier.
How are you going to handle DTs which aren't updated and still don't
have compatible strings? Seems like that would be messy if not
impossible.
>
> Signed-off-by: Peng Fan <peng.fan@nxp.com>
> ---
>
> RFC:
> This may sounds like that adding compatible to resovle linux driver issue.
> Yes indeed. current scmi framework limitation makes it not work well with
> fwdevlink, wrong suppliers maybe linked to consumers.
> I have tried various's method to not introduce compatible, but rejected by
> fwdevlink maintainer or scmi maintainer
> There was a long discussion in [1][2][3].
> [1] https://lore.kernel.org/arm-scmi/20240729070325.2065286-1-peng.fan@oss.nxp.com/
> [2] https://lore.kernel.org/arm-scmi/20241225-scmi-fwdevlink-v1-0-e9a3a5341362@nxp.com/T/#mdd17c4b9b11af9fae0d5b6ec2e13756c2c6f977d
> [3] https://lore.kernel.org/arm-scmi/20250120-scmi-fwdevlink-v2-0-3af2fa37dbac@nxp.com/
>
> The binding changes are posted out to see whether DT maintainer's view on
> whether introduce compatible string is welcomed or not.
> I not include driver changes, because this is just to see whether people
> are happy with this or not.
>
> Quote Sudeep's reply"
> I am not blocking you. What I mentioned is I don't agree that DT can be used
> to resolve this issue, but I don't have time or alternate solution ATM. So
> if you propose DT based solution and the maintainers agree for the proposed
> bindings I will take a look and help you to make that work. But I will raise
> any objections I may have if the proposal has issues mainly around the
> compatibility and ease of maintenance.
> "
This all looks to me like SCMI has failed to provide common interfaces.
I'm indifferent. If everyone involved thinks adding compatibles will
solve whatever the issues are, then it's going to be fine with me
(other than the issue above). It doesn't seem like you have that, so I
don't know that I'd keep going down this path.
Rob
next prev parent reply other threads:[~2025-02-26 16:11 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-26 9:44 [RFC] dt-bindings: firmware: scmi: Introduce compatible string Peng Fan (OSS)
2025-02-26 16:09 ` Rob Herring [this message]
2025-02-26 17:19 ` Sudeep Holla
2025-02-27 3:15 ` Peng Fan
2025-02-27 9:12 ` Sudeep Holla
2025-02-27 3:09 ` Peng Fan
2025-02-28 13:34 ` Rob Herring
2025-02-28 14:04 ` Sudeep Holla
2025-02-28 14:17 ` Rob Herring
2025-03-03 4:35 ` Peng Fan
2025-02-27 11:48 ` Cristian Marussi
2025-03-03 4:27 ` Peng Fan
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=20250226160945.GA2505223-robh@kernel.org \
--to=robh@kernel.org \
--cc=arm-scmi@vger.kernel.org \
--cc=conor+dt@kernel.org \
--cc=cristian.marussi@arm.com \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=peng.fan@nxp.com \
--cc=peng.fan@oss.nxp.com \
--cc=saravanak@google.com \
--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;
as well as URLs for NNTP newsgroup(s).