From: Jakub Kicinski <kuba@kernel.org>
To: Daniel Golle <daniel@makrotopia.org>
Cc: Andrew Lunn <andrew@lunn.ch>, Vladimir Oltean <olteanv@gmail.com>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Paolo Abeni <pabeni@redhat.com>, Simon Horman <horms@kernel.org>,
linux-kernel@vger.kernel.org, netdev@vger.kernel.org
Subject: Re: [PATCH net-next v2 3/4] net: dsa: mxl862xx: add devlink flash_update and info_get
Date: Wed, 22 Jul 2026 10:14:49 -0700 [thread overview]
Message-ID: <20260722101449.43537aef@kernel.org> (raw)
In-Reply-To: <alaKsBXSK9tP__O8@makrotopia.org>
On Tue, 14 Jul 2026 20:14:56 +0100 Daniel Golle wrote:
> On Tue, Jul 14, 2026 at 01:51:02AM +0100, Daniel Golle wrote:
> [...]
> > + if (!of_property_read_string_index(ds->dev->of_node, "compatible", 0,
> > + &compatible)) {
> > + ret = devlink_info_version_fixed_put(req,
> > + DEVLINK_INFO_VERSION_GENERIC_ASIC_ID,
> > + compatible);
>
> Review of the fwupd counterpart of this series[1] made me reconsider
> what the driver reports as the "asic.id" fixed version. The devicetree
> compatible string used here ("maxlinear,mxl86252") turned out to be an
> unfortunate choice as the comma is awkward for userspace consumers, so
> for v3 I plan to follow the mv88e6xxx example and report a chip name
> from a per-model info table instead:
>
> fixed:
> asic.id MaxLinear MxL86252
>
> Before sending v3 I would like to clarify the preferred format of the
> value. Existing implementations differ: mv88e6xxx reports for example
> "Marvell 88E6085", including the vendor name and a space, sja1105
> reports "SJA1105E", hellcreek reports "hellcreek", and bnxt and ionic
> report bare chip identifiers.
>
> Documentation/networking/devlink/devlink-info.rst only describes
> "asic.id" as "ASIC design identifier" without any format constraints.
>
> Userspace builds firmware matching identifiers from these values, in
> the case of fwupd for example
>
> MDIO_BUS\COMPONENT_fw&ASIC.ID_MaxLinear MxL86252
>
> and while a space works there, such identifiers commonly avoid spaces
> in favour of underscores, hyphens or dots.
>
> Is there a preference for new drivers? Should the vendor name be part
> of "asic.id" as done by mv88e6xxx, or would a single token such as
> "MxL86252" be more appropriate?
>
> [1] https://github.com/fwupd/fwupd/pull/10667
The embedded drivers are probably doing it wrong, I wasn't paying
enough attention. devlink versions are supposed to be broken up into
components, the vendor name does not belong in asic id.
IIUC asic.id was supposed to be the numerical version of the design
(excluding revision, which is asic.rev). Something that's usually read
from a static CSR.
next prev parent reply other threads:[~2026-07-22 17:14 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-14 0:50 [PATCH net-next v2 0/4] net: dsa: mxl862xx: support firmware update Daniel Golle
2026-07-14 0:50 ` [PATCH net-next v2 1/4] net: dsa: wire flash_update devlink callback to drivers Daniel Golle
2026-07-14 0:50 ` [PATCH net-next v2 2/4] net: dsa: mxl862xx: add SMDIO clause-22 register access Daniel Golle
2026-07-14 0:51 ` [PATCH net-next v2 3/4] net: dsa: mxl862xx: add devlink flash_update and info_get Daniel Golle
2026-07-14 19:14 ` Daniel Golle
2026-07-17 19:18 ` Andrew Lunn
2026-07-22 17:14 ` Jakub Kicinski [this message]
2026-07-14 0:51 ` [PATCH net-next v2 4/4] net: dsa: mxl862xx: recover switch stuck in MCUboot rescue mode Daniel Golle
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=20260722101449.43537aef@kernel.org \
--to=kuba@kernel.org \
--cc=andrew@lunn.ch \
--cc=daniel@makrotopia.org \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=horms@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=olteanv@gmail.com \
--cc=pabeni@redhat.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.