From: sashiko-bot@kernel.org
To: "Louis-Alexis Eyraud" <louisalexis.eyraud@collabora.com>
Cc: devicetree@vger.kernel.org, conor+dt@kernel.org, robh@kernel.org
Subject: Re: [PATCH net-next v4 1/6] dt-bindings: net: Add support for Airoha AN8801R GbE PHY
Date: Sat, 30 May 2026 00:45:37 +0000 [thread overview]
Message-ID: <20260530004537.8D1BE1F00893@smtp.kernel.org> (raw)
In-Reply-To: <20260521-add-airoha-an8801-support-v4-1-1e4837d30ef4@collabora.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] The binding incorrectly redefines the standard `function-enumerator` property to configure hardware offload modes instead of using it as an ordinal identifier.
--
commit e8af54668e8a0d612e75cb2d23647751c0b3640f
Author: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
dt-bindings: net: Add support for Airoha AN8801R GbE PHY
Add a new binding to support the Airoha AN8801R Series Gigabit
Ethernet PHY.
> diff --git a/Documentation/devicetree/bindings/net/airoha,an8801.yaml b/Documentation/devicetree/bindings/net/airoha,an8801.yaml
> new file mode 100644
> index 0000000000000..fb2f70ceb33ab
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/net/airoha,an8801.yaml
[ ... ]
> + patternProperties:
> + "^led@[0-2]$":
> + type: object
> + description: PHY LEDs
> + $ref: /schemas/leds/common.yaml#
> +
> + properties:
> + reg:
> + enum: [0, 1, 2]
> +
> + function-enumerator:
> + enum: [0, 1, 2]
> + description: |
> + Specifies a function for offloading LED functionality to the PHY:
> + 0 - No offloading
> + 1 - Link Availability
> + 2 - Network Activity
[Severity: Medium]
Does this code misuse the function-enumerator property?
According to the standard LED subsystem schema
(Documentation/devicetree/bindings/leds/common.yaml), function-enumerator is
strictly defined as an integer used when more than one instance of the same
function is needed, differing only with an ordinal number (e.g., LAN 1, LAN 2).
Using it here (and in the subsequent PHY driver commit) to configure
hardware-specific offload modes conflates an LED ordinal with hardware
behavior configuration.
Could this establish a non-compliant device tree ABI that might break
standard LED tooling?
[ ... ]
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260521-add-airoha-an8801-support-v4-0-1e4837d30ef4@collabora.com?part=1
next prev parent reply other threads:[~2026-05-30 0:45 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-21 8:21 [PATCH net-next v4 0/6] Introduce Airoha AN8801R series Gigabit Ethernet PHY driver Louis-Alexis Eyraud
2026-05-21 8:21 ` [PATCH net-next v4 1/6] dt-bindings: net: Add support for Airoha AN8801R GbE PHY Louis-Alexis Eyraud
2026-05-21 10:15 ` Rob Herring (Arm)
2026-05-30 0:45 ` sashiko-bot [this message]
2026-05-21 8:21 ` [PATCH net-next v4 2/6] net: phy: Add Airoha phy library for shared code Louis-Alexis Eyraud
2026-05-21 8:21 ` [PATCH net-next v4 3/6] net: phy: air_phy_lib: Factorize BuckPBus register accessors Louis-Alexis Eyraud
2026-05-21 8:21 ` [PATCH net-next v4 4/6] net: phy: Rename Airoha common " Louis-Alexis Eyraud
2026-05-21 8:21 ` [PATCH net-next v4 5/6] net: phy: Introduce Airoha AN8801R Gigabit Ethernet PHY driver Louis-Alexis Eyraud
2026-05-30 0:45 ` sashiko-bot
2026-05-21 8:21 ` [PATCH net-next v4 6/6] net: phy: air_an8801: ensure maximum available speed link use Louis-Alexis Eyraud
2026-05-30 0:45 ` 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=20260530004537.8D1BE1F00893@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=louisalexis.eyraud@collabora.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