From: sashiko-bot@kernel.org
To: "Renze Nicolai" <renze@rnplus.nl>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH 3/4] ARM: dts: aspeed: x570d4u: Give unique names to MAC address nvmem cells
Date: Tue, 03 Nov 2026 20:43:45 +0000 [thread overview]
Message-ID: <sashiko-outbox-196007@kernel.org> (raw)
In-Reply-To: <20261103203308.54789-4-renze@rnplus.nl>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] ARM: dts: aspeed: x570d4u: invalid underscores in nvmem cell node names
--
commit 48dfc9aa6b8fe87b8ac64b7c75b8d6bd5fea2a5f
Author: Renze Nicolai <renze@rnplus.nl>
ARM: dts: aspeed: x570d4u: Give unique names to MAC address nvmem cells
This commit renames the two MAC address nvmem-layout child nodes in
aspeed-bmc-asrock-x570d4u.dts from macaddress@3f80 and macaddress@3f88 to
eth0_macaddress@3f80 and eth1_macaddress@3f88.
> diff --git a/arch/arm/boot/dts/aspeed/aspeed-bmc-asrock-x570d4u.dts b/arch/arm/boot/dts/aspeed/aspeed-bmc-asrock-x570d4u.dts
> index 6e7e3e7ec1019..fca14320829e1 100644
> --- a/arch/arm/boot/dts/aspeed/aspeed-bmc-asrock-x570d4u.dts
> +++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-asrock-x570d4u.dts
> @@ -233,11 +233,11 @@ nvmem-layout {
> #address-cells = <1>;
> #size-cells = <1>;
>
> - eth0_macaddress: macaddress@3f80 {
> + eth0_macaddress: eth0_macaddress@3f80 {
> reg = <0x3f80 6>;
> };
>
> - eth1_macaddress: macaddress@3f88 {
> + eth1_macaddress: eth1_macaddress@3f88 {
[Severity: Low]
Does renaming these nodes in nvmem-layout to use underscores introduce dtc
W=2 warnings and violate the Devicetree coding style?
Per Documentation/devicetree/bindings/dts-coding-style.rst, node names should
use lowercase letters, digits, and hyphens (-), whereas underscores (_) are
only meant for Devicetree labels. When building DTBs with W=2
(-Wnode_name_chars_strict), check_node_name_chars_strict() in
scripts/dtc/checks.c rejects underscores in node basenames:
if (n < node->basenamelen)
FAIL(c, dti, node, "Character '%c' not recommended in node name",
node->name[n]);
Also, does the name collision described in the commit message actually occur
for DT-defined cells? In drivers/nvmem/core.c, DT consumers resolve
nvmem-cells phandles via of_nvmem_cell_get(), which matches by device_node
pointer rather than cell->name:
cell_entry = nvmem_find_cell_entry_by_node(nvmem, cell_np);
And in sysfs, nvmem_populate_sysfs_cells() includes the offset and bit_offset
in the attribute filename, producing macaddress@3f80,0 and macaddress@3f88,0:
attrs[i].attr.name = devm_kasprintf(&nvmem->dev, GFP_KERNEL,
"%s@%x,%x", entry->name,
entry->offset,
entry->bit_offset);
If distinct node basenames are still desired here, should hyphens be used
instead (such as eth0-macaddress@3f80 and eth1-macaddress@3f88)?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261103203308.54789-1-renze@rnplus.nl?part=3
next prev parent reply other threads:[~2026-11-03 20:43 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-03 20:33 [PATCH 0/4] ARM: dts: aspeed: x570d4u: devicetree fixes and cleanups Renze Nicolai
2026-11-03 20:33 ` [PATCH 1/4] ARM: dts: aspeed: x570d4u: Remove w83773g temperature sensor Renze Nicolai
2026-11-03 20:33 ` [PATCH 2/4] ARM: dts: aspeed: x570d4u: Fix fan tach channel assignments Renze Nicolai
2026-11-03 20:33 ` [PATCH 3/4] ARM: dts: aspeed: x570d4u: Give unique names to MAC address nvmem cells Renze Nicolai
2026-11-03 20:43 ` sashiko-bot [this message]
2026-11-03 20:33 ` [PATCH 4/4] ARM: dts: aspeed: x570d4u: Add some GPIO line names Renze Nicolai
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=sashiko-outbox-196007@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=renze@rnplus.nl \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/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.