From: sashiko-bot@kernel.org
To: "Fil Dunsky" <filipp.dunsky@gmail.com>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH net-next 1/5] dt-bindings: reset: Add Cortina CS7542 network engine reset domain
Date: Tue, 24 Nov 2026 18:53:19 +0000 [thread overview]
Message-ID: <sashiko-outbox-231857@kernel.org> (raw)
In-Reply-To: <20261123-b4-cs7542-ethernet-v1-1-fdb5e8c2d508@gmail.com>
Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [Medium] dt-bindings: reset: cortina,cs7542-ne-reset models driver
policy with 0 cells
- [Medium] dt-bindings: reset: cortina,cs7542-syscon adds resource-less
reset child node
--
commit 8b12223a26b6c9716b47cb476510aff102be0e41
Author: Fil Dunsky <filipp.dunsky@gmail.com>
dt-bindings: reset: Add Cortina CS7542 network engine reset domain
This commit adds a DT schema for the Cortina CS7542 network engine reset
domain and references it as a child of the CS7542 global syscon binding.
> diff --git a/Documentation/devicetree/bindings/reset/cortina,cs7542-ne-reset.yaml b/Documentation/devicetree/bindings/reset/cortina,cs7542-ne-reset.yaml
> new file mode 100644
> index 0000000000000..8f5b5b8350502
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/reset/cortina,cs7542-ne-reset.yaml
> @@ -0,0 +1,42 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/reset/cortina,cs7542-ne-reset.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Cortina Systems CS7542 network engine reset domain
> +
> +maintainers:
> + - Fil Dunsky <filipp.dunsky@gmail.com>
> +
> +description: |
> + Child of the CS7542 global syscon. One reset domain covers NI, FE, TM,
> + scheduler, queue manager, NI XRAM and the entire DMA block (LSO and SSP).
> + SDRAM and unrelated peripheral reset bits are not modified. The consumer
> + must own all these blocks exclusively. This reset is not suitable for a
> + network-only consumer while a separate driver uses SSP DMA.
> +
> +properties:
> + compatible:
> + const: cortina,cs7542-ne-reset
> +
> + "#reset-cells":
> + const: 0
[Severity: Medium]
Should this reset provider use #reset-cells = <1> to expose the individual
hardware reset lines in the global reset register rather than bundling a
subset of them into a 0-cell virtual domain?
Bundling NI, FE, TM, scheduler, queue manager, NI XRAM and the shared
LSO/SSP DMA reset bits into a single 0-cell reset while excluding PCIe and
other peripheral resets in the same register encodes current driver
partitioning into the DT ABI. Separate DT consumers (such as an SSP DMA
or PCIe driver) cannot address individual reset lines without breaking the
binding.
> diff --git a/Documentation/devicetree/bindings/soc/cortina/cortina,cs7542-syscon.yaml b/Documentation/devicetree/bindings/soc/cortina/cortina,cs7542-syscon.yaml
> index fb074de870bd4..5aca670cdbde7 100644
> --- a/Documentation/devicetree/bindings/soc/cortina/cortina,cs7542-syscon.yaml
> +++ b/Documentation/devicetree/bindings/soc/cortina/cortina,cs7542-syscon.yaml
> @@ -33,6 +33,10 @@ properties:
> type: object
> $ref: /schemas/pinctrl/cortina,cs7542-pinctrl.yaml#
>
> + reset-controller:
> + type: object
> + $ref: /schemas/reset/cortina,cs7542-ne-reset.yaml#
[Severity: Medium]
Why add a child reset-controller node with no registers or other DT
resources of its own instead of putting #reset-cells directly on the
parent cortina,cs7542-syscon node?
The parent syscon node already owns the global control register block
(reg = <0xf0000000 0x100>) containing the reset register and already acts
directly as the clock provider via #clock-cells = <1>.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261123-b4-cs7542-ethernet-v1-0-fdb5e8c2d508@gmail.com?part=1
next prev parent reply other threads:[~2026-11-24 18:53 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-23 18:44 [PATCH net-next 0/5] net: cortina: Add CS7542 network engine support Fil Dunsky via B4 Relay
2026-11-23 18:44 ` [PATCH net-next 1/5] dt-bindings: reset: Add Cortina CS7542 network engine reset domain Fil Dunsky via B4 Relay
2026-11-24 6:39 ` Krzysztof Kozlowski
2026-11-24 6:58 ` Fil Dunsky
2026-11-24 18:53 ` sashiko-bot [this message]
2026-11-23 18:44 ` [PATCH net-next 2/5] reset: Add Cortina CS7542 network engine domain control Fil Dunsky via B4 Relay
2026-11-23 18:44 ` [PATCH net-next 3/5] dt-bindings: net: Add Cortina CS7542 network engine Fil Dunsky via B4 Relay
2026-11-23 22:05 ` Andrew Lunn
2026-11-23 22:31 ` Fil Dunsky
2026-11-23 18:44 ` [PATCH net-next 4/5] net: cortina: Add CS7542 CPU network datapath Fil Dunsky via B4 Relay
2026-11-23 22:24 ` Andrew Lunn
2026-11-23 23:41 ` Fil Dunsky
2026-11-24 18:53 ` sashiko-bot
2026-11-23 18:44 ` [PATCH net-next 5/5] MAINTAINERS: Add CS7542 network engine support Fil Dunsky via B4 Relay
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-231857@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=filipp.dunsky@gmail.com \
--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