Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Louis-Alexis Eyraud" <louisalexis.eyraud@collabora.com>
Cc: robh@kernel.org, conor+dt@kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH net-next v5 1/6] dt-bindings: net: Add support for Airoha AN8801R GbE PHY
Date: Sat, 30 May 2026 00:48:48 +0000	[thread overview]
Message-ID: <20260530004848.AEA3C1F00893@smtp.kernel.org> (raw)
In-Reply-To: <20260526-add-airoha-an8801-support-v5-1-01aea8dee69b@collabora.com>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] The `function-enumerator` property is improperly redefined to select hardware-specific LED offloading modes, violating standard Device Tree semantics.
--

commit 431ddd4a15a9545434987e262ef6e5a4a8d95bfe
Author: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>

dt-bindings: net: Add support for Airoha AN8801R GbE PHY

This commit adds a new device tree binding for 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
> --- /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 redefine standard device tree semantics for function-enumerator?

In standard LED bindings (leds/common.yaml), function-enumerator is an
ordinal used strictly for disambiguating LED names, such as eth0:green:lan-1.

Since the Linux LED core unconditionally uses function-enumerator to construct
the sysfs device name, setting it to 2 to enable Network Activity offloading
might inadvertently name the LED lan-2 and create an incorrect sysfs ABI.

Could this hardware offloading be configured via standard mechanisms like
linux,default-trigger or a dedicated vendor-specific property instead?

[ ... ]

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260526-add-airoha-an8801-support-v5-0-01aea8dee69b@collabora.com?part=1

  reply	other threads:[~2026-05-30  0:48 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-26 14:58 [PATCH net-next v5 0/6] Introduce Airoha AN8801R series Gigabit Ethernet PHY driver Louis-Alexis Eyraud
2026-05-26 14:58 ` [PATCH net-next v5 1/6] dt-bindings: net: Add support for Airoha AN8801R GbE PHY Louis-Alexis Eyraud
2026-05-30  0:48   ` sashiko-bot [this message]
2026-05-26 14:58 ` [PATCH net-next v5 2/6] net: phy: Add Airoha phy library for shared code Louis-Alexis Eyraud
2026-05-26 14:58 ` [PATCH net-next v5 3/6] net: phy: air_phy_lib: Factorize BuckPBus register accessors Louis-Alexis Eyraud
2026-05-26 14:58 ` [PATCH net-next v5 4/6] net: phy: Rename Airoha common " Louis-Alexis Eyraud
2026-05-26 14:58 ` [PATCH net-next v5 5/6] net: phy: Introduce Airoha AN8801R Gigabit Ethernet PHY driver Louis-Alexis Eyraud
2026-05-28  1:29   ` Andrew Lunn
2026-05-30  0:48   ` sashiko-bot
2026-05-26 14:58 ` [PATCH net-next v5 6/6] net: phy: air_an8801: ensure maximum available speed link use Louis-Alexis Eyraud
2026-05-28  1:30   ` Andrew Lunn
2026-05-30  0:48   ` sashiko-bot
2026-05-28  1:50 ` [PATCH net-next v5 0/6] Introduce Airoha AN8801R series Gigabit Ethernet PHY driver patchwork-bot+netdevbpf

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=20260530004848.AEA3C1F00893@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