Netdev List
 help / color / mirror / Atom feed
From: netdev-bot+sashiko@kernel.org
To: markus.stockhausen@gmx.de
Cc: andrew@lunn.ch, hkallweit1@gmail.com, linux@armlinux.org.uk,
	davem@davemloft.net, edumazet@google.com, kuba@kernel.org,
	pabeni@redhat.com, netdev@vger.kernel.org,
	chris.packham@alliedtelesis.co.nz, robh@kernel.org,
	krzk+dt@kernel.org, conor+dt@kernel.org,
	devicetree@vger.kernel.org
Subject: Re: [PATCH net-next v3 2/4] net: mdio: realtek-rtl9300: Convert "fwnode" left-overs to "of"
Date: Thu, 10 Sep 2026 15:04:30 +0000	[thread overview]
Message-ID: <178905267047.219967.17076903048414131472@kernel.org> (raw)
In-Reply-To: <20260909150107.3602067-3-markus.stockhausen@gmx.de>

Thank you for your contribution! Sashiko AI review found 1 potential
issue(s) to consider:

Critical: 0 · High: 0 · Medium: 0 · Low: 1

- [Low] Incomplete conversion vs. commit-message claim: the commit states
  it converts "the remaining 'fwnode' left-overs" of…

--

net: mdio: realtek-rtl9300: Convert "fwnode" left-overs to "of"

This converts otto_emdio_probe_one() to take a struct device_node instead
of a struct fwnode_handle, replaces fwnode_property_read_u32() with
of_property_read_u32(), drops the to_of_node() conversion for
devm_of_mdiobus_register(), and switches the child loop in
otto_emdio_probe() to for_each_available_child_of_node_scoped().

> The latest developments of the MDIO driver consistently used the
> "of" API. Convert the remaining "fwnode" left-overs too.

[Severity: Low]
Is the conversion of "the remaining fwnode left-overs" complete after this
patch?  otto_emdio_map_ports() still prints the parent node through the
fwnode API:

drivers/net/mdio/mdio-realtek-rtl9300.c:otto_emdio_map_ports() {
	ports_dn = of_get_child_by_name(parent->of_node, "ethernet-ports");
	if (!ports_dn)
		return dev_err_probe(dev, -EINVAL, "%pfwP missing ethernet-ports\n",
				     dev_fwnode(parent));
	...
}

The statement just above already uses parent->of_node, so would "%pOF" with
parent->of_node be the matching "of" form here?

A grep for fwnode in the file at this commit shows this dev_err_probe() call
as the only remaining user, and it is still unchanged at the end of the
series (5624848bce74bb4ff1882ee7fa047bde6f4e04aa), so should the commit
message be softened, or the print converted as well?

The message text itself is correct either way, and %pfwP on an OF-backed
fwnode still prints the node path, so this is only about the completeness
claim.

-- 
Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20260909150107.3602067-1-markus.stockhausen%40gmx.de

  reply	other threads:[~2026-09-10 15:04 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-09 15:01 [PATCH net-next v3 0/4] net: mdio: realtek-rtl9300: add bus frequency handling Markus Stockhausen
2026-09-09 15:01 ` [PATCH net-next v3 1/4] dt-bindings: net: realtek,rtl9301-mdio: Add clock-frequency Markus Stockhausen
2026-09-10 15:04   ` netdev-bot+sashiko
2026-09-09 15:01 ` [PATCH net-next v3 2/4] net: mdio: realtek-rtl9300: Convert "fwnode" left-overs to "of" Markus Stockhausen
2026-09-10 15:04   ` netdev-bot+sashiko [this message]
2026-09-09 15:01 ` [PATCH net-next v3 3/4] net: mdio: realtek-rtl9300: Reject duplicate MDIO bus IDs Markus Stockhausen
2026-09-09 15:01 ` [PATCH net-next v3 4/4] net: mdio: realtek-rtl9300: Support non-default clock frequency Markus Stockhausen
2026-09-10 15:04   ` 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=178905267047.219967.17076903048414131472@kernel.org \
    --to=netdev-bot+sashiko@kernel.org \
    --cc=andrew@lunn.ch \
    --cc=chris.packham@alliedtelesis.co.nz \
    --cc=conor+dt@kernel.org \
    --cc=davem@davemloft.net \
    --cc=devicetree@vger.kernel.org \
    --cc=edumazet@google.com \
    --cc=hkallweit1@gmail.com \
    --cc=krzk+dt@kernel.org \
    --cc=kuba@kernel.org \
    --cc=linux@armlinux.org.uk \
    --cc=markus.stockhausen@gmx.de \
    --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