Article View: linux.kernel.netdev
Article #3819Re: [PATCH net-next 21/37] dt-bindings: net: can: convert grcan to DT schema
From: netdev-bot+sashiko
Date: Fri, 16 Oct 2026 02:37
Date: Fri, 16 Oct 2026 02:37
107 lines
9305 bytes
9305 bytes
Thank you for your contribution! Sashiko AI review found more severe
issue(s) in other patches of this series. This mail is only an FYI, in case
you want to address the nit picks below when you respin.
Low priority / nit picks for your consideration:
- [Low] This patch deletes
Documentation/devicetree/bindings/net/can/grcan.txt.
- [Low] The binding description (aeroflexgaisler,grcan.yaml lines 18-20)
and the commit message both say the node name "<coreβ¦
--
dt-bindings: net: can: convert grcan to DT schema
This converts the free-form grcan.txt binding to a DT schema. The nodes
are built by the PROM and have no compatible string, so the schema selects
on the node name. It also moves systemid into the description, because
that property is read from /ambapp0 and not from the controller node.
Link: https://patch.msgid.link/20260929073703.2748220-2-quchaosheng000406@163.com
> diff --git a/Documentation/devicetree/bindings/net/can/aeroflexgaisler,grcan.yaml b/Documentation/devicetree/bindings/net/can/aeroflexgaisler,grcan.yaml
> new file mode 100644
> index 000000000000..d5cba5b1bac1
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/net/can/aeroflexgaisler,grcan.yaml
> @@ -0,0 +1,65 @@
[ ... ]
> + On a LEON SPARC system there are no device tree source files. The nodes
> + are built by the PROM from the AMBA plug&play information, which does not
> + provide a compatible string. The driver therefore matches on the node
> + name, which is built as "<core name>@<irq>,<address>" from the "name" and
> + "reg" properties of the AMBA plug&play core.
[Severity: Low]
Does this describe the source of the <irq> field correctly? In
ambapp_path_component() in arch/sparc/kernel/prom_32.c, that field comes
from the first cell of the "interrupts" property, not from "reg":
arch/sparc/kernel/prom_32.c:ambapp_path_component() {
...
prop = of_find_property(dp, "reg", NULL);
if (!prop) {
reg0 = (unsigned int)dp->phandle;
} else {
regs = prop->value;
reg0 = regs->phys_addr;
}
/* Not all cores have Interrupt */
prop = of_find_property(dp, "interrupts", NULL);
if (!prop)
intr = &interrupt; /* IRQ0 does not exist */
else
intr = prop->value;
sprintf(tmp_buf, "%s@%x,%x", name, *intr, reg0);
}
Only <address> comes from "reg", and it falls back to the phandle when
"reg" is missing.
The commit message uses the same wording:
The node name format is "<core name>@<irq>,<address>", as built by
ambapp_path_component() in arch/sparc/kernel/prom_32.c from the "name"
and "reg" properties of the AMBA plug&play core.
Could both places say the name is built from the "name", "interrupts" and
"reg" properties? The example and the select pattern already match the
real behaviour.
[ ... ]
> diff --git a/Documentation/devicetree/bindings/net/can/grcan.txt b/Documentation/devicetree/bindings/net/can/grcan.txt
> deleted file mode 100644
> index 34ef3498f887..000000000000
> --- a/Documentation/devicetree/bindings/net/can/grcan.txt
> +++ /dev/null
> @@ -1,28 +0,0 @@
> -Aeroflex Gaisler GRCAN and GRHCAN CAN controllers.
[ ... ]
[Severity: Low]
At this commit grcan.txt is deleted, but the header comment in
drivers/net/can/grcan.c still refers to it:
drivers/net/can/grcan.c:
* See "Documentation/devicetree/bindings/net/can/grcan.txt" for information on
* open firmware properties.
The commit message says the driver comment is updated by a separate patch.
The follow-up "can: grcan: update the binding file reference in the driver
comment" points it at aeroflexgaisler,grcan.yaml, so the stale reference
is fixed by the end of the series.
Could that one-line change be folded into this patch? Then the reference
would not dangle at this commit, or if this patch is backported without
its companion.
--
Sashiko AI review Β· https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261015015336.816543-2-mkl%40pengutronix.de
Technical Details
Message-ID:
<179211823229.434549.6830532108439542194@kernel.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-347079-linux-kernel-netdev=dewy.ruReferences:
<20261015015336.816543-22-mkl@pengutronix.de>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-347079-linux-kernel-netdev=dewy.ru From: netdev-bot+sashiko@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next 21/37] dt-bindings: net: can: convert grcan to DT schema Date: Fri, 16 Oct 2026 02:37:12 +0000 Organization: Usenet Network Message-ID: <179211823229.434549.6830532108439542194@kernel.org> References: <20261015015336.816543-22-mkl@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="2670627"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:ouyj+Cr4byIe4N93UC3YGyT2Vnw= sha256:t9lg7nmjzmbA4mAtHUjej4ARhki4Mzzpn8u2v07YIhM= sha1:KIrd97rEY6R9/Bkg85tLVHmD4cw= sha256:WMOJ2zS5VIvbE4+5KY2OFudzuTI9PKeo+zCAa/yHQKQ= List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id 0A731110448; Fri, 16 Oct 2026 05:38:21 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -1.34 X-Spam-Status: No, score=-1.34 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.24, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=kernel.org X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HotedCRI20zV; Fri, 16 Oct 2026 05:38:18 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-347079-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) by mail.dewy.ru (Postfix) with ESMTPS id E625C110444; Fri, 16 Oct 2026 05:38:09 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by tor.lore.kernel.org (Postfix) with ESMTP id 1FD1833791; Fri, 16 Oct 2026 02:37:17 +0000 (UTC) X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DF25C39EF24; Fri, 16 Oct 2026 02:37:16 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="e2wRwvcn" X-Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4A59839E19A; Fri, 16 Oct 2026 02:37:13 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792118236; cv=none; b=HbtMJCSlaRXtIdHXazthdaB1pAMWfgTJ7Yl4+z6E4M5nEBSbj5EZZfpEBmTHfrw+ebMyRmzvCZF2MTM+YzsGvhzHETjtqIrjouKIhZd/H/Fu48AgWzxSdlLEut5X1BY1L5Ku5sUa/DgLFjBZi7mb28+LVJdzOtds6K3Ft8coJmY= X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792118236; c=relaxed/simple; bh=R/Yn0SGOZynrKMX740jy2eTWyLIrDEo2PJoP61O0lJY=; h=Subject:From:To:Cc:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=e2FL28ndeqOB+40Wo9tyd+zfOxgqV4xHR/OIxDV9oppSLCsk2rrl6xbPmxtTJMq5TQvER1AHLl+FP0SpHIFIuA+HeVJ8TEQAcU/3tLcNRISIcP8KijfkylHKtnBCRtRkc+5PVyE7gI5hh/18zYe57S++9PeFFq34tcoW0Hft8+k= X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=e2wRwvcn; arc=none smtp.client-ip=100.103.45.18 X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id BB3221F000C6; Fri, 16 Oct 2026 02:37:12 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1792118233; bh=u5Bw8lFEaI62e866j235OjdHZBGUZnHEmmF3ATESZW0=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=e2wRwvcnMQdTqk9NGcfSvuX/KeYRpI9Rg//Y5MZS6V1+nCOOM3m+ywigkTebPFpki WgYrn73x6IcSl3FPtjYmoT4vBrkWUw8Yu/WN/Ycd/cq7xIIAlXQn/s6UWIdbq4V4Sc iyWCiCAhdgmX5iKrm8tVAbNuGZC79tlMrVJkeXUui4Xl9gv8QiXs0ArnbfIWmCuGUl krLy0NzvhnrrDwQSv9CmSnYv/yHCDPcAmduCFgM0oyGm5kRNG1jq97ppBNu/NcfSpR +IzAEAjV0FssPUDe7IB1b3kUSu7cCadPbqFJUwak4lvFiDUvvWZT4FfoRL9OVe9D+i PJsKXmWKuXmlQ== X-Cc: netdev@vger.kernel.org, davem@davemloft.net, kuba@kernel.org, linux-can@vger.kernel.org, kernel@pengutronix.de, socketcan@hartkopp.net, kurt.van.dijck@eia.be X-In-Reply-To: <20261015015336.816543-22-mkl@pengutronix.de> X-sashiko-severity: Low X-Precedence: bulk X-Mailing-List: netdev@vger.kernel.org X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>