mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: netdev-bot+sashiko@kernel.org
To: arthur@marmottus.net
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 v11 1/3] dt-bindings: net: wiznet,w5100: convert to DT schema
Date: Mon, 28 Sep 2026 10:23:15 +0000	[thread overview]
Message-ID: <179059099561.3145.7542447951602158988@kernel.org> (raw)
In-Reply-To: <20260924-wiznet-link-gpio-v11-1-42a332517b30@marmottus.net>

Thank you for your contribution! Sashiko AI review found more severe
issue(s) in other patches of this series. This mail is only an FYI, in case
you want to address the nit picks below when you respin.

Low priority / nit picks for your consideration:

- [Low] In Documentation/devicetree/bindings/net/wiznet,w5100.yaml, `spi-
  max-frequency` has a single `maximum: 80000000` that applies to all…

--

dt-bindings: net: wiznet,w5100: convert to DT schema

This commit converts the Wiznet w5x00 SPI Ethernet controller binding
from plain text to DT schema. It also changes the example interrupt
trigger type from edge-falling to level-low to match the driver, and
adds a MAINTAINERS entry for the new YAML file.

> diff --git a/Documentation/devicetree/bindings/net/wiznet,w5100.yaml b/Documentation/devicetree/bindings/net/wiznet,w5100.yaml
> new file mode 100644
> index 000000000000..df83f90b3919
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/net/wiznet,w5100.yaml

[ ... ]

> +allOf:
> +  - $ref: /schemas/net/ethernet-controller.yaml#
> +  - $ref: /schemas/spi/spi-peripheral-props.yaml#
> +
> +properties:
> +  compatible:
> +    enum:
> +      - wiznet,w5100
> +      - wiznet,w5200
> +      - wiznet,w5500

[ ... ]

> +  spi-max-frequency:
> +    description:
> +      According to the datasheets, w5500 and w5200 allow a maximum of 80 MHz
> +      while w5100 is reported by users to allow a maximum of 14 MHz. However,
> +      board designs may need to limit this value.
> +    maximum: 80000000

[Severity: Low]
The description gives w5100 a lower limit of about 14 MHz, but the only
constraint here is maximum: 80000000, and it applies to all three
compatibles. Should the schema enforce the w5100 limit as well?

The allOf above only holds the two $refs. Nothing like this lowers the
limit for w5100:

  if:
    properties:
      compatible:
        contains:
          const: wiznet,w5100
  then:
    properties:
      spi-max-frequency:
        maximum: 14000000

As a result, a node with compatible = "wiznet,w5100" and, for example,
the 30 MHz value from the example would pass dt_binding_check and
dtbs_check.

The driver does not clamp the rate either. w5100_spi_probe() picks
w5100_spi_ops from the match data and passes the device on to
w5100_probe(), and the SPI core uses the max_speed_hz from DT as is.

The same gap remains at the end of the series. The allOf if/then block
added by "dt-bindings: net: wiznet,w5100: add link status interrupt"
only restricts interrupts and does not touch spi-max-frequency.

The old text binding had no limit at all, so this is not a regression
from the conversion. If the 14 MHz figure is left unenforced on purpose
because it comes from user reports rather than the datasheet, could the
binding say so?

[ ... ]

-- 
Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20260924-wiznet-link-gpio-v11-0-42a332517b30%40marmottus.net

  reply	other threads:[~2026-09-28 10:23 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-24  9:48 [PATCH net-next v11 0/3] w5100: restore GPIO-based link detection Arthur Crepin Leblond
2026-09-24  9:48 ` [PATCH net-next v11 1/3] dt-bindings: net: wiznet,w5100: convert to DT schema Arthur Crepin Leblond
2026-09-28 10:23   ` netdev-bot+sashiko [this message]
2026-09-24  9:48 ` [PATCH net-next v11 2/3] dt-bindings: net: wiznet,w5100: add link status interrupt Arthur Crepin Leblond
2026-09-24 16:57   ` Conor Dooley
2026-09-28 10:23   ` netdev-bot+sashiko
2026-09-24  9:48 ` [PATCH net-next v11 3/3] w5100: detect carrier state using link status bit and optional interrupt Arthur Crepin Leblond
2026-09-28 10:23   ` 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=179059099561.3145.7542447951602158988@kernel.org \
    --to=netdev-bot+sashiko@kernel.org \
    --cc=andrew+netdev@lunn.ch \
    --cc=arnd@arndb.de \
    --cc=arthur@marmottus.net \
    --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@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®