Linux CAN drivers development
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Jisheng Zhang" <jszhang@kernel.org>
Cc: "Oleksij Rempel" <o.rempel@pengutronix.de>,
	conor+dt@kernel.org, linux-can@vger.kernel.org,
	"Marc Kleine-Budde" <mkl@pengutronix.de>,
	robh@kernel.org, "Vincent Mailhol" <mailhol@kernel.org>,
	devicetree@vger.kernel.org,
	"Oliver Hartkopp" <socketcan@hartkopp.net>
Subject: Re: [PATCH 1/2] dt-bindings: can: add arasan canfd controller
Date: Mon, 03 Aug 2026 14:31:49 +0000	[thread overview]
Message-ID: <20260803143151.24A121F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260803140531.12692-2-jszhang@kernel.org>

Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Medium] The schema uses `additionalProperties: false` instead of `unevaluatedProperties: false`, which breaks property inheritance from `can-controller.yaml`.
- [Medium] Missing `clock-names` and `reset-names` in the `required` list, and missing `minItems` constraints.
--

--- Patch [1]: [PATCH 1/2] dt-bindings: can: add arasan canfd controller ---
commit 282ace981cf63f65fd400dda84f1806d370fbc9b
Author: Jisheng Zhang <jszhang@kernel.org>

dt-bindings: can: add arasan canfd controller

This commit adds device tree binding documentation for the Arasan CAN-FD
controller.

> diff --git a/Documentation/devicetree/bindings/net/can/arasan,canfd.yaml b/Documentation/devicetree/bindings/net/can/arasan,canfd.yaml
> new file mode 100644
> index 0000000000000..a120c11ce3045
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/net/can/arasan,canfd.yaml
[ ... ]
> +allOf:
> +  - $ref: can-controller.yaml#
[ ... ]
> +  clocks:
> +    maxItems: 2
> +
> +  clock-names:
> +    items:
> +      - const: can
> +      - const: sys
> +
> +  resets:
> +    maxItems: 2
> +
> +  reset-names:
> +    items:
> +      - const: can
> +      - const: sys
> +
> +required:
> +  - compatible
> +  - reg
> +  - interrupts
> +  - clocks
> +  - resets

[Severity: Medium]
Should clock-names and reset-names be included in this required list? A device
tree omitting these names might pass validation, but could cause the driver to
fail during probe when requesting clocks or resets by name.

Also, should clocks and resets specify minItems: 2, since the definition
expects two distinct items for each?

> +
> +additionalProperties: false

[Severity: Medium]
Should this use unevaluatedProperties: false instead? Since the schema includes
can-controller.yaml via $ref earlier in the file, using additionalProperties:
false will prevent the inheritance of valid standard properties from the
included schema.

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

  reply	other threads:[~2026-08-03 14:31 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-03 14:05 [PATCH 0/2] can: add arasan canfd controller support Jisheng Zhang
2026-08-03 14:05 ` [PATCH 1/2] dt-bindings: can: add arasan canfd controller Jisheng Zhang
2026-08-03 14:31   ` sashiko-bot [this message]
2026-08-03 15:17   ` Krzysztof Kozlowski
2026-08-03 14:05 ` [PATCH 2/2] can: arasan-canfd: add driver for arasan CAN-FD controller Jisheng Zhang
2026-08-03 14:43   ` sashiko-bot
2026-08-03 15:21   ` Philipp Zabel
2026-08-03 16:05   ` Oliver Hartkopp

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=20260803143151.24A121F000E9@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=jszhang@kernel.org \
    --cc=linux-can@vger.kernel.org \
    --cc=mailhol@kernel.org \
    --cc=mkl@pengutronix.de \
    --cc=o.rempel@pengutronix.de \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox