From: Arthur Crepin Leblond <arthur@marmottus.net>
To: netdev-bot+sashiko@kernel.org
Cc: andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@google.com,
kuba@kernel.org, pabeni@redhat.com, robh@kernel.org,
krzk+dt@kernel.org, conor+dt@kernel.org, arnd@arndb.de,
netdev@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH net-next v8 2/3] dt-bindings: net: wiznet,w5100: add link status interrupt
Date: Fri, 18 Sep 2026 09:17:54 +0200 [thread overview]
Message-ID: <20260918071754.GA30413@marmottus.net> (raw)
In-Reply-To: <178967573088.22033.12415855189978378014@kernel.org>
On Thu, Sep 17, 2026 at 08:08:50PM +0000, netdev-bot+sashiko@kernel.org wrote:
>[Severity: Low]
>Is this else branch describing the hardware, or the current Linux driver?
>
>The LINKLED output exists on the w5100 and w5200 packages as well, so a
>board that routes w5100/w5200 LINKLED to a host GPIO cannot be described
>here:
>
> compatible = "wiznet,w5200";
> interrupts = <25 IRQ_TYPE_LEVEL_LOW>, <24 IRQ_TYPE_EDGE_BOTH>;
>
>The second entry is rejected by maxItems: 1 during dt_binding_check.
>
>The only in-tree justification found for the w5500 restriction is the
>driver gate added later in this series, in w5100_probe():
>
> priv->link_irq = ops->chip_id == W5500 ?
> fwnode_irq_get(dev_fwnode(dev), 1) : -EINVAL;
>
>which is a software limitation (register readback of link state via w5500
>PHYCFGR) rather than absence of the pin. Would it be preferable to allow
>two interrupts for all three compatibles and note in the interrupts
>description which parts can actually report link state, so this constraint
>does not have to be relaxed later?
The LINKLED pin exists on w5100/w5200 but cannot be reliably used as a
trigger to check the carrier state as it also blinks on RX/TX activity.
Link LED
Low: Link (10/100M)
High: Un-Link
link: TX or RX state on Link
Arthur
next prev parent reply other threads:[~2026-09-18 7:18 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-15 8:06 [PATCH net-next v8 0/3] w5100: restore GPIO-based link detection Arthur Crepin Leblond
2026-09-15 8:06 ` [PATCH net-next v8 1/3] dt-bindings: net: wiznet,w5100: convert to DT schema Arthur Crepin Leblond
2026-09-17 20:08 ` netdev-bot+sashiko
2026-09-18 7:03 ` Arthur Crepin Leblond
2026-09-15 8:06 ` [PATCH net-next v8 2/3] dt-bindings: net: wiznet,w5100: add link status interrupt Arthur Crepin Leblond
2026-09-17 10:04 ` Krzysztof Kozlowski
2026-09-17 12:02 ` Arthur Crepin Leblond
2026-09-17 20:08 ` netdev-bot+sashiko
2026-09-18 7:17 ` Arthur Crepin Leblond [this message]
2026-09-15 8:06 ` [PATCH net-next v8 3/3] w5100: detect carrier state using link status bit and optional interrupt Arthur Crepin Leblond
2026-09-17 20:08 ` 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=20260918071754.GA30413@marmottus.net \
--to=arthur@marmottus.net \
--cc=andrew+netdev@lunn.ch \
--cc=arnd@arndb.de \
--cc=conor+dt@kernel.org \
--cc=davem@davemloft.net \
--cc=devicetree@vger.kernel.org \
--cc=edumazet@google.com \
--cc=krzk+dt@kernel.org \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev-bot+sashiko@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=robh@kernel.org \
/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
all inboxes | Powered by JetHome®