Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Aleksei Sviridkin" <f@lex.la>
Cc: robh@kernel.org, conor+dt@kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH net-next v4 1/2] dt-bindings: net: ethernet-phy: add needs-host-firmware
Date: Sat, 26 Sep 2026 00:12:25 +0000	[thread overview]
Message-ID: <20260926001225.94D4B1F000FF@smtp.kernel.org> (raw)
In-Reply-To: <20260925001209.2334139-2-f@lex.la>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] dt-bindings: net: needs-host-firmware encodes OS policy in DT
--

commit edf86867db27d83679811b06ea7e2a94b9b02fb8
Author: Aleksei Sviridkin <f@lex.la>

dt-bindings: net: ethernet-phy: add needs-host-firmware

This commit introduces a new needs-host-firmware property to the Ethernet PHY
bindings. It aims to delay MAC connections to PHYs that require host-loaded
firmware until their specific driver is available. This addresses an issue
where a generic driver binds early and fails to initialize a PHY needing
firmware from the root filesystem.

> diff --git a/Documentation/devicetree/bindings/net/ethernet-phy.yaml b/Documentation/devicetree/bindings/net/ethernet-phy.yaml
> --- a/Documentation/devicetree/bindings/net/ethernet-phy.yaml
> +++ b/Documentation/devicetree/bindings/net/ethernet-phy.yaml
[ ... ]
> @@ -215,6 +215,12 @@ properties:
>        used. The absence of this property indicates the muxers
>        should be configured so that the external PHY is used.
>  
> +  needs-host-firmware:

[Severity: Medium]
Does this property encode an OS-specific driver binding workaround into the
device tree ABI?

The commit message explicitly states the flag is needed because the PHY driver
"is a module not yet loaded when the MAC connects".

Device tree should describe hardware, not software policy or OS module loading
sequences.

The hardware's need for firmware is intrinsically linked to its PHY ID, which
is identical regardless of whether the driver is built-in or a module.

Can this be handled internally by the core PHY library instead of relying on a
custom DT flag to manage driver binding behavior? For example, by maintaining
a list of PHY IDs that require firmware to bypass the generic PHY driver
fallback.

> +    $ref: /schemas/types.yaml#/definitions/flag
> +    description:
> +      This PHY runs firmware that the host must load before it can be
> +      driven, and is not usable until then.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260925001209.2334139-1-f@lex.la?part=1

  parent reply	other threads:[~2026-09-26  0:12 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-25  0:12 [PATCH net-next v4 0/2] net: phylink: wait for a PHY that probes after the MAC Aleksei Sviridkin
2026-09-25  0:12 ` [PATCH net-next v4 1/2] dt-bindings: net: ethernet-phy: add needs-host-firmware Aleksei Sviridkin
2026-09-25 16:37   ` Conor Dooley
2026-09-26  0:12   ` sashiko-bot [this message]
2026-09-29  0:31   ` netdev-bot+sashiko
2026-09-25  0:12 ` [PATCH net-next v4 2/2] net: phylink: wait for PHYs that are known to probe late Aleksei Sviridkin
2026-09-29  0:32   ` netdev-bot+sashiko

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=20260926001225.94D4B1F000FF@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=f@lex.la \
    --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