From: sashiko-bot@kernel.org
To: "Markus Stockhausen" <markus.stockhausen@gmx.de>
Cc: devicetree@vger.kernel.org, conor+dt@kernel.org, robh@kernel.org
Subject: Re: [PATCH net-next 1/3] dt-bindings: net: realtek,rtl9301-mdio: Add clock-frequency
Date: Fri, 04 Sep 2026 12:22:00 +0000 [thread overview]
Message-ID: <20260904122201.0BE6F1F00A3D@smtp.kernel.org> (raw)
In-Reply-To: <20260903122119.2638354-2-markus.stockhausen@gmx.de>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] The `clock-frequency` property in the device tree schema is missing required hardware bounds constraints.
--
commit 740105b9d636a18be6fb1810649547d948475058
Author: Markus Stockhausen <markus.stockhausen@gmx.de>
dt-bindings: net: realtek,rtl9301-mdio: Add clock-frequency
The Realtek Otto Switch ethernet MDIO controller supports different MDC
speeds ranging from 1.25MHz to 10MHz. Document the clock-frequency
attribute for the device tree.
> diff --git a/Documentation/devicetree/bindings/net/realtek,rtl9301-mdio.yaml b/Documentation/devicetree/bindings/net/realtek,rtl9301-mdio.yaml
> index 67e0b23a8470e..6db3315ce96b3 100644
> --- a/Documentation/devicetree/bindings/net/realtek,rtl9301-mdio.yaml
> +++ b/Documentation/devicetree/bindings/net/realtek,rtl9301-mdio.yaml
> @@ -56,6 +56,9 @@ patternProperties:
> reg:
> maxItems: 1
>
> + clock-frequency:
> + default: 2500000
> +
[Severity: Low]
Does this schema definition lack the required bounds constraints for the clock
frequency?
The commit message explicitly states the hardware supports MDC speeds ranging
from 1.25MHz to 10MHz. However, without bounds constraints like minimum and
maximum or an enum array, dt_binding_check will successfully validate device
trees that specify physically impossible clock frequencies.
If a device tree author sets an out-of-range clock-frequency (such as 200MHz)
in a DTS file under patternProperties:^mdio-bus@[0-3]$, schema validation will
incorrectly pass.
Should this property definition enforce the physical hardware constraints with
minimum: 1250000 and maximum: 10000000 (or a predefined enum list) to
accurately enforce the described limitations?
> required:
> - reg
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260903122119.2638354-1-markus.stockhausen@gmx.de?part=1
next prev parent reply other threads:[~2026-09-04 12:22 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-03 12:21 [PATCH net-next 0/3] net: mdio: realtek-rtl9300: add bus frequency handling Markus Stockhausen
2026-09-03 12:21 ` [PATCH net-next 1/3] dt-bindings: net: realtek,rtl9301-mdio: Add clock-frequency Markus Stockhausen
2026-09-03 12:30 ` Andrew Lunn
2026-09-04 12:22 ` sashiko-bot [this message]
2026-09-03 12:21 ` [PATCH net-next 2/3] net: mdio: realtek-rtl9300: Convert "fwnode" left-overs to "of" Markus Stockhausen
2026-09-03 12:26 ` Andrew Lunn
2026-09-04 12:22 ` sashiko-bot
2026-09-03 12:21 ` [PATCH net-next 3/3] net: mdio: realtek-rtl9300: Support non-default clock frequency Markus Stockhausen
2026-09-03 12:32 ` Andrew Lunn
2026-09-04 12:22 ` sashiko-bot
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=20260904122201.0BE6F1F00A3D@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=markus.stockhausen@gmx.de \
--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 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.