Devicetree
 help / color / mirror / Atom feed
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 v6 1/3] dt-bindings: net: Add Cortina CS7542 MDIO controller
Date: Sun, 06 Dec 2026 14:37:13 +0000	[thread overview]
Message-ID: <sashiko-outbox-252482@kernel.org> (raw)
In-Reply-To: <20261205-b4-cs7542-mdio-v6-1-228e312ff14b@gmail.com>

Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [Medium] dt-bindings: net: cs7542-mdio forbids clock-frequency due to
  driver policy
- [Low] dt-bindings: net: cs7542-mdio omits rationale for
  suppress-preamble: false
--

commit 76df9f9f1b70bc3241483a27959a3fff9aff9f19
Author: Fil Dunsky <filipp.dunsky@gmail.com>

dt-bindings: net: Add Cortina CS7542 MDIO controller

This commit adds the Device Tree binding schema for the Cortina Systems
CS7542 Clause 22 MDIO controller.

Link: https://lore.kernel.org/all/179644615714.3146.7992850630581806957@kernel.org/

> diff --git a/Documentation/devicetree/bindings/net/cortina,cs7542-mdio.yaml b/Documentation/devicetree/bindings/net/cortina,cs7542-mdio.yaml
> new file mode 100644
> index 0000000000000..a20d10a5c2c7d
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/net/cortina,cs7542-mdio.yaml

[ ... ]

> +description:
> +  Clause 22 MDIO controller with a programmable 16-bit MDC prescaler.
> +  Firmware configures the prescaler before the operating system starts.

[ ... ]

> +  clock-frequency: false

[Severity: Medium]
Should this binding forbid clock-frequency and encode firmware startup
behavior in description?

The controller has a programmable 16-bit MDC prescaler, and the commit
message excludes clock-frequency only because the driver preserves
firmware-assigned MDC.  Per writing-bindings.rst, bindings should
describe the hardware rather than current OS or driver behavior.

Forbidding clock-frequency causes dtbs_check to reject valid board DTS
files that specify an MDC frequency.  Since clock-frequency is already
optional in mdio.yaml, dropping clock-frequency: false and the firmware
startup sentence keeps the binding complete without requiring it in DTS.

> +
> +  suppress-preamble: false

[Severity: Low]
Does the CS7542 hardware lack preamble suppression, or is
suppress-preamble: false also a driver limitation?

Neither the commit message nor the binding description explains why
suppress-preamble is forbidden.  If the hardware cannot suppress the
preamble, documenting that constraint would clarify why it is disallowed;
otherwise, suppress-preamble: false should be dropped.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261205-b4-cs7542-mdio-v6-0-228e312ff14b@gmail.com?part=1

  reply	other threads:[~2026-12-06 14:37 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-05 14:36 [PATCH net-next v6 0/3] Add Cortina Systems CS7542 MDIO controller support Fil Dunsky via B4 Relay
2026-12-05 14:37 ` [PATCH net-next v6 1/3] dt-bindings: net: Add Cortina CS7542 MDIO controller Fil Dunsky via B4 Relay
2026-12-06 14:37   ` sashiko-bot [this message]
2026-12-05 14:37 ` [PATCH net-next v6 2/3] net: mdio: Add Cortina CS7542 bus controller Fil Dunsky via B4 Relay
2026-12-06 14:37   ` sashiko-bot
2026-12-05 14:37 ` [PATCH net-next v6 3/3] MAINTAINERS: Add Cortina CS7542 MDIO controller entry 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-252482@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