Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Petko Manolov" <petko.manolov@konsulko.com>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v11 3/3] arm: dts: altera: add Draeger M48 CPU Module
Date: Thu, 15 Oct 2026 15:09:40 +0000	[thread overview]
Message-ID: <sashiko-outbox-173039@kernel.org> (raw)
In-Reply-To: <20261015145804.3632839-4-petko.manolov@konsulko.com>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [High] net: stmmac: missing snps,dwmac-mdio compatible breaks MDIO registration
--

commit d908833e7bbbda78aeaec54305a0979e4a84551f
Author: Petko Manolov <petko.manolov@konsulko.com>

arm: dts: altera: add Draeger M48 CPU Module

M48 is a heterogeneous board made by Draeger that is based on two independent
cpus. This commit adds the device tree for the Altera SoCFPGA Cyclone 5 based
CPU module of the Draeger M48.

> diff --git a/arch/arm/boot/dts/intel/socfpga/socfpga_cyclone5_draeger_m48.dts b/arch/arm/boot/dts/intel/socfpga/socfpga_cyclone5_draeger_m48.dts
> new file mode 100644
> index 0000000000000..314930a52de58
> --- /dev/null
> +++ b/arch/arm/boot/dts/intel/socfpga/socfpga_cyclone5_draeger_m48.dts

[ ... ]

> +&gmac0 {
> +	status = "okay";
> +	phy-mode = "rgmii";
> +	phy-handle = <&ethphy>;
> +
> +	mdio0 {
> +		#address-cells = <1>;
> +		#size-cells = <0>;
> +

[Severity: High]
Does this node need a compatible string to ensure the MDIO bus is registered?

Looking at stmmac_of_get_mdio(), it searches for the MDIO bus by checking if
the MAC is compatible with snps,dwc-qos-ethernet-4.10 or if the MDIO child
node has compatible = "snps,dwmac-mdio". Since neither condition is met,
stmmac_of_get_mdio() returns NULL.

Later in stmmac_mdio_setup(), because phy-handle is defined, the legacy_mdio
fallback evaluates to false and mdio_bus_data is left unallocated. This
causes stmmac_mdio_register() to return early without registering the bus.

Would adding compatible = "snps,dwmac-mdio" to this node prevent the ethernet
interface from failing to probe its PHY?

> +		ethphy: ethernet-phy@0 {
> +			compatible = "ethernet-phy-ieee802.3-c22";
> +			reg = <0>;

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261015145804.3632839-1-petko.manolov@konsulko.com?part=3

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

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-15 14:58 [PATCH v11 0/3] arm: dts: altera: add Draeger M48 CPU board Petko Manolov
2026-10-15 14:58 ` [PATCH v11 1/3] dt-bindings: vendor-prefixes: add Draeger AG Petko Manolov
2026-10-15 14:58 ` [PATCH v11 2/3] dt-bindings: arm: altera: add Draeger M48 dual-cpu board Petko Manolov
2026-10-15 14:58 ` [PATCH v11 3/3] arm: dts: altera: add Draeger M48 CPU Module Petko Manolov
2026-10-15 15:09   ` sashiko-bot [this message]

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=sashiko-outbox-173039@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=petko.manolov@konsulko.com \
    --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