All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: Quchaosheng <quchaosheng000406@163.com>
Cc: "Vincent Mailhol" <mailhol@kernel.org>,
	linux-can@vger.kernel.org, conor+dt@kernel.org, robh@kernel.org,
	devicetree@vger.kernel.org,
	"Oliver Hartkopp" <socketcan@hartkopp.net>,
	"Oleksij Rempel" <o.rempel@pengutronix.de>,
	"Marc Kleine-Budde" <mkl@pengutronix.de>
Subject: Re: [PATCH v7 2/3] dt-bindings: net: can: holt,hi311x: Convert to DT schema
Date: Tue, 22 Sep 2026 08:52:32 +0000	[thread overview]
Message-ID: <20260922085233.23DEB1F000FF@smtp.kernel.org> (raw)
In-Reply-To: <20260922084542.104788-3-quchaosheng000406@163.com>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] dt-bindings: missing spi-peripheral-props.yaml reference rejects valid SPI properties
--

commit daeb2992a77029d59549250b99f2dd7fac156a7f
Author: Quchaosheng <quchaosheng000406@163.com>

dt-bindings: net: can: holt,hi311x: Convert to DT schema

This commit converts the Holt HI-311X stand-alone CAN controller bindings
from free-form text to DT schema format. It establishes the base properties
using can-controller.yaml and strictly enforces them.

> diff --git a/Documentation/devicetree/bindings/net/can/holt,hi311x.yaml b/Documentation/devicetree/bindings/net/can/holt,hi311x.yaml
> new file mode 100644
> index 0000000000000..d9e3584590c65
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/net/can/holt,hi311x.yaml
[ ... ]
> +allOf:
> +  - $ref: can-controller.yaml#

[Severity: Medium]
Since this device sits on an SPI bus, doesn't it need a reference to
/schemas/spi/spi-peripheral-props.yaml# here to support standard SPI
properties?

The v7 changelog mentions dropping this reference because the example doesn't
use SPI properties. However, real-world device trees that instantiate this
SPI device will routinely provide standard SPI properties, such as
spi-max-frequency.

[ ... ]
> +required:
> +  - compatible
> +  - reg
> +  - clocks
> +  - interrupts
> +
> +unevaluatedProperties: false

[Severity: Medium]
Because unevaluatedProperties is set to false here, the missing reference to
spi-peripheral-props.yaml means any standard SPI bus configuration properties
will be treated as invalid by the schema tools.

Will this cause dtbs_check to reject valid device tree nodes that include
necessary SPI properties?

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260922084542.104788-1-quchaosheng000406@163.com?part=2

  reply	other threads:[~2026-09-22  8:52 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-22  8:45 [PATCH v7 0/3] dt-bindings: net: can: convert three bindings to DT schema Quchaosheng
2026-09-22  8:45 ` [PATCH v7 1/3] dt-bindings: net: can: ifi,canfd-1.0: Convert " Quchaosheng
2026-09-22  8:45 ` [PATCH v7 2/3] dt-bindings: net: can: holt,hi311x: " Quchaosheng
2026-09-22  8:52   ` sashiko-bot [this message]
2026-09-22  8:45 ` [PATCH v7 3/3] dt-bindings: net: can: fsl,mpc5xxx-mscan: " Quchaosheng

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=20260922085233.23DEB1F000FF@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=linux-can@vger.kernel.org \
    --cc=mailhol@kernel.org \
    --cc=mkl@pengutronix.de \
    --cc=o.rempel@pengutronix.de \
    --cc=quchaosheng000406@163.com \
    --cc=robh@kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=socketcan@hartkopp.net \
    /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.