Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Rob Herring (Arm)" <robh@kernel.org>
Cc: robh@kernel.org, devicetree@vger.kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH net-next v3] dt-bindings: net: Convert HiSilicon hns-dsaf to DT schema
Date: Tue, 06 Oct 2026 20:29:20 +0000	[thread overview]
Message-ID: <sashiko-outbox-162430@kernel.org> (raw)
In-Reply-To: <20261005202808.1982164-2-robh@kernel.org>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] dt-bindings: net: incorrect additionalProperties in port node rejects inherited properties
--

commit 1a8f2a688cef19a71010006753fe6e776c15501b
Author: Rob Herring (Arm) <robh@kernel.org>

dt-bindings: net: Convert HiSilicon hns-dsaf to DT schema

Convert the HiSilicon hns-dsaf binding to DT schema format. Drop the unused
phy-handle at the top level, add the undocumented media-type property, and
drop support for 4 reg regions as they have long been deprecated.

> diff --git a/Documentation/devicetree/bindings/net/hisilicon,hns-dsaf-v1.yaml b/Documentation/devicetree/bindings/net/hisilicon,hns-dsaf-v1.yaml
> new file mode 100644
> index 0000000000000..4629acbba8104
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/net/hisilicon,hns-dsaf-v1.yaml
> @@ -0,0 +1,170 @@
> [ ... ]
> +patternProperties:
> +  "^port@[0-5]$":
> +    description: DSA Fabric port node
> +    $ref: ethernet-switch-port.yaml#
> +    additionalProperties: false

[Severity: Medium]
Will this incorrectly reject standard ethernet port properties inherited from
ethernet-switch-port.yaml?

In JSON Schema, additionalProperties does not consider properties defined
within a $ref. Thus, any property defined in the referenced schema but not
explicitly listed in the local properties block will be incorrectly rejected.

Should this use unevaluatedProperties: false instead when inheriting from
another schema?

> +
> +    properties:
> +      reg:
> +        maximum: 5
> [ ... ]

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261005202808.1982164-2-robh@kernel.org?part=1

  reply	other threads:[~2026-10-06 20:29 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-05 20:28 [PATCH net-next v3] dt-bindings: net: Convert HiSilicon hns-dsaf to DT schema Rob Herring (Arm)
2026-10-06 20:29 ` sashiko-bot [this message]
2026-10-07 13:37   ` Rob Herring
2026-10-08  1:00 ` patchwork-bot+netdevbpf

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-162430@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox