From: netdev-bot+sashiko@kernel.org
To: mmyangfl@gmail.com
Cc: netdev@vger.kernel.org, andrew+netdev@lunn.ch,
davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org,
pabeni@redhat.com, robh@kernel.org, krzk+dt@kernel.org,
conor+dt@kernel.org, shenjian15@huawei.com, shaojijie@huawei.com,
devicetree@vger.kernel.org
Subject: Re: [PATCH net-next v4 2/5] dt-bindings: net: hisilicon,hisi-gmac-v1: Add mdio bus child node
Date: Fri, 27 Nov 2026 01:43:17 +0000 [thread overview]
Message-ID: <179574379712.3135.10430747530251606424@kernel.org> (raw)
In-Reply-To: <20261126005524.4156940-3-mmyangfl@gmail.com>
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 this commit the binding hisilicon,hisi-gmac-v1.yaml adds an
optional `mdio` child node and says that PHYs sit under it when it is…
--
dt-bindings: net: hisilicon,hisi-gmac-v1: Add mdio bus child node
This adds an optional mdio child node to the hisi-gmac-v1 binding. When
the node is present, the MAC looks for PHYs under it instead of directly
under the top-level node.
> diff --git a/Documentation/devicetree/bindings/net/hisilicon,hisi-gmac-v1.yaml b/Documentation/devicetree/bindings/net/hisilicon,hisi-gmac-v1.yaml
> index 89ed6ab1905e1..a715298259552 100644
> --- a/Documentation/devicetree/bindings/net/hisilicon,hisi-gmac-v1.yaml
> +++ b/Documentation/devicetree/bindings/net/hisilicon,hisi-gmac-v1.yaml
> @@ -53,6 +53,13 @@ properties:
> - const: mac_ifc
> - const: phy
>
> + mdio:
> + $ref: mdio.yaml#
> + unevaluatedProperties: false
> + description:
> + Node containing PHY children. If this node is not present, then PHYs will
> + be direct children.
[Severity: Low]
With only this commit applied, does the driver honour the new mdio child?
hix5hd2_dev_probe() in drivers/net/ethernet/hisilicon/hix5hd2_gmac.c still
registers the MDIO bus on the top-level MAC node:
hix5hd2_dev_probe() {
...
ret = of_mdiobus_register(bus, node);
...
}
The binding now accepts PHYs placed under mdio { }. A DT using that layout
would leave the PHY unregistered at this point in the series.
of_phy_connect() in hix5hd2_net_open() would then fail to find a
phy_device for the phy-handle.
The next patch in the series, "net: hix5hd2_gmac: Use mdio child node for
MDIO bus if it exists", looks up the child with
of_get_available_child_by_name(node, "mdio"). It then calls
of_mdiobus_register(bus, mdio_np ?: node), which closes the gap.
This is the usual dt-bindings-first order for a series, so this is likely
fine as is. It is noted here only for completeness.
>
> hisilicon,phy-reset-delays-us:
> description: Triplet of PHY reset delays in microseconds.
--
Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261126005524.4156940-1-mmyangfl%40gmail.com
next prev parent reply other threads:[~2026-11-27 1:43 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-26 0:55 [PATCH net-next v4 0/5] net: hix5hd2_gmac: Support fixed-link David Yang
2026-11-26 0:55 ` [PATCH net-next v4 1/5] net: hix5hd2_gmac: Use devm_ managed netdev and MDIO bus David Yang
2026-11-26 0:55 ` [PATCH net-next v4 2/5] dt-bindings: net: hisilicon,hisi-gmac-v1: Add mdio bus child node David Yang
2026-11-27 1:43 ` netdev-bot+sashiko [this message]
2026-11-26 0:55 ` [PATCH net-next v4 3/5] net: hix5hd2_gmac: Use mdio child node for MDIO bus if it exists David Yang
2026-11-26 0:55 ` [PATCH net-next v4 4/5] dt-bindings: net: hisilicon,hisi-gmac-v1: Allow fixed-link David Yang
2026-11-26 0:55 ` [PATCH net-next v4 5/5] net: hix5hd2_gmac: Support fixed-link David Yang
2026-11-27 1:43 ` 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=179574379712.3135.10430747530251606424@kernel.org \
--to=netdev-bot+sashiko@kernel.org \
--cc=andrew+netdev@lunn.ch \
--cc=conor+dt@kernel.org \
--cc=davem@davemloft.net \
--cc=devicetree@vger.kernel.org \
--cc=edumazet@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=kuba@kernel.org \
--cc=mmyangfl@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=robh@kernel.org \
--cc=shaojijie@huawei.com \
--cc=shenjian15@huawei.com \
/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