From: sashiko-bot@kernel.org
To: "Rob Herring (Arm)" <robh@kernel.org>
Cc: conor+dt@kernel.org, robh@kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH net-next] dt-bindings: net: Convert hisilicon,hns-nic to DT schema
Date: Sat, 26 Sep 2026 21:59:35 +0000 [thread overview]
Message-ID: <20260926215935.8964A1F000FF@smtp.kernel.org> (raw)
In-Reply-To: <20260925215923.2950950-1-robh@kernel.org>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] dt-bindings: incomplete port-id deprecation and validation constraint
--
commit fa2141e31377c486f984e5588eb02ffe70ed8443
Author: Rob Herring (Arm) <robh@kernel.org>
dt-bindings: net: Convert hisilicon,hns-nic to DT schema
Convert the hisilicon,hns-nic binding to DT schema format. It's a
straight forward conversion.
> diff --git a/Documentation/devicetree/bindings/net/hisilicon,hns-nic.yaml b/Documentation/devicetree/bindings/net/hisilicon,hns-nic.yaml
> new file mode 100644
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/net/hisilicon,hns-nic.yaml
[ ... ]
> +properties:
> + compatible:
> + enum:
> + - hisilicon,hns-nic-v1
> + - hisilicon,hns-nic-v2
> +
> + ae-handle:
> + description:
> + accelerator engine handle for hns, specifies a reference to the
> + associating hardware driver node.
> + $ref: /schemas/types.yaml#/definitions/phandle
> +
> + port-id:
> + description: |
> + is the index of port provided by DSAF (the accelerator). DSAF can connect to 8 PHYs.
> + Port 0 to 1 are both used for administration purpose.
[Severity: Low]
The original text file mentioned the port-id attribute remains for
compatibility purposes and is not recommended for new code. Should
properties.port-id in Documentation/devicetree/bindings/net/hisilicon,hns-nic.yaml
include a deprecated: true annotation here to preserve that constraint?
[ ... ]
> + dma-coherent: true
> +
> +required:
> + - compatible
> + - ae-handle
> + - port-idx-in-ae
> + - local-mac-address
[Severity: Low]
Does unconditionally requiring port-idx-in-ae in the required list break
dtbs_check schema validation for older device trees in
Documentation/devicetree/bindings/net/hisilicon,hns-nic.yaml?
If legacy device trees rely on the port-id fallback without providing
port-idx-in-ae, this strict requirement might cause validation errors
when running schema checks on older configurations. Should this be
conditionally required instead?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260925215923.2950950-1-robh@kernel.org?part=1
prev parent reply other threads:[~2026-09-26 21:59 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-25 21:59 [PATCH net-next] dt-bindings: net: Convert hisilicon,hns-nic to DT schema Rob Herring (Arm)
2026-09-26 21:59 ` sashiko-bot [this message]
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=20260926215935.8964A1F000FF@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--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.