From: sashiko-bot@kernel.org
To: "Maxime Chevallier" <maxime.chevallier@bootlin.com>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH net-next 12/12] ARM: dts: turris-omnia: Describe the WAN port multiplexer
Date: Sat, 05 Dec 2026 11:08:52 +0000 [thread overview]
Message-ID: <sashiko-outbox-251453@kernel.org> (raw)
In-Reply-To: <20261204110622.1106492-13-maxime.chevallier@bootlin.com>
Thank you for your contribution! Sashiko AI review found 3 potential
issues to consider:
- [High] ARM: dts: turris-omnia: removing eth2 sfp breaks WAN SFP when
PHY_MUX=n
- [Medium] ARM: dts: turris-omnia: mii-mux-handle fails mvneta_open() if
mux absent
- [Medium] ARM: dts: turris-omnia: wan_mux breaks mvneta_mdio_probe()
WoL and speed_up
--
commit 6cfa2117998086601c4b50faf6694fb1b3114fac
Author: Maxime Chevallier <maxime.chevallier@bootlin.com>
ARM: dts: turris-omnia: Describe the WAN port multiplexer
This commit describes the Turris Omnia WAN port MII multiplexer in
devicetree, enabling the SFP node unconditionally and wiring eth2 to
the mux instead of referencing the SFP node directly.
> diff --git a/arch/arm/boot/dts/marvell/armada-385-turris-omnia.dts b/arch/arm/boot/dts/marvell/armada-385-turris-omnia.dts
> index 83fe00abd6523..0501686e26427 100644
> --- a/arch/arm/boot/dts/marvell/armada-385-turris-omnia.dts
> +++ b/arch/arm/boot/dts/marvell/armada-385-turris-omnia.dts
> @@ -103,13 +103,24 @@ sfp: sfp {
[ ... ]
> + wan_mux: mii-mux {
> + compatible = "mii-mux-auto";
[Severity: Medium]
Can adding this mii-mux-auto node break eth2 bring-up when
CONFIG_MII_MUX_AUTO is disabled or built as a module?
With CONFIG_PHY_MUX=y, mvneta_open() -> phylink_of_phy_connect() ->
phylink_attach_mux() calls fwnode_phy_mux_attach(). If mii_mux_auto is
not built or not yet probed (such as during IP_PNP DHCP with
CONFIG_MII_MUX_AUTO=m), fwnode_phy_mux_attach() returns -EPROBE_DEFER.
phylink_attach_mux() turns -EPROBE_DEFER into -ENODEV without falling
back to phy-handle, and drivers/of/property.c has no
of_supplier_bindings[] entry for mii-mux-handle to order probing via
fw_devlink. As a result, mvneta_open() fails even on copper RJ45.
[ ... ]
> @@ -199,16 +210,12 @@ ð2 {
[ ... ]
> status = "okay";
> phy-mode = "sgmii";
> phy-handle = <&phy1>;
> + mii-mux-handle = <&wan_mux>;
[Severity: Medium]
Does attaching eth2 through wan_mux break Wake-on-LAN and
phylink_speed_up() in mvneta?
With mii-mux-handle, pl->phydev stays NULL after phylink_of_phy_connect()
until phy_mux_state_machine() asynchronously selects port@1 after
phylink_start(). mvneta_mdio_probe() calls phylink_ethtool_get_wol()
before phylink_start(), so wol.supported is 0 and can_wakeup is cleared.
Because mvneta never re-enables can_wakeup after port selection,
mvneta_ethtool_set_wol() -> device_set_wakeup_enable() silently fails
with -EINVAL. This leaves device_may_wakeup() permanently false and
prevents mvneta_stop_dev() from calling phylink_speed_down().
In addition, mvneta_start_dev() calls phylink_speed_up() right after
phylink_start(), before mux->state_work populates pl->phydev, turning
phylink_speed_up() into a no-op.
> phys = <&comphy5 2>;
> - sfp = <&sfp>;
[Severity: High]
Does removing sfp = <&sfp> from eth2 regress Turris Omnia WAN SFP
networking when CONFIG_PHY_MUX=n or when an older kernel boots this DTB?
Neither CONFIG_PHY_MUX nor CONFIG_MII_MUX_AUTO defaults to y or is
enabled in mvebu_v7_defconfig or multi_v7_defconfig. When
CONFIG_PHY_MUX=n, phylink_register_mux_sfp() gets NULL from the stub
fwnode_phy_mux_find_sfp_port() and falls back to phylink_register_sfp().
With sfp = <&sfp> deleted from eth2, pl->sfp_bus stays NULL while the
enabled sfp node probes unattached with TX_DISABLE asserted, breaking
WAN SFP networking even with U-Boot's boot-time FDT fixup.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261204110622.1106492-1-maxime.chevallier@bootlin.com?part=12
next prev parent reply other threads:[~2026-12-05 11:08 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-04 11:06 [PATCH net-next 00/12] net: phy: Introduce MII multiplexers Maxime Chevallier
2026-12-04 11:06 ` [PATCH net-next 01/12] dt-bindings: net: Add Ethernet " Maxime Chevallier
2026-12-05 11:08 ` sashiko-bot
2026-12-05 12:18 ` netdev-bot+sashiko
2026-12-04 11:06 ` [PATCH net-next 02/12] net: phy: Introduce phy_mux, a MII multiplexer representation Maxime Chevallier
2026-12-04 11:06 ` [PATCH net-next 03/12] net: phy: Don't create the sysfs links for PHYs behind a mux Maxime Chevallier
2026-12-05 11:08 ` sashiko-bot
2026-12-05 12:18 ` netdev-bot+sashiko
2026-12-04 11:06 ` [PATCH net-next 04/12] net: phy: phy_mux: Allow attaching a mux to a net_device Maxime Chevallier
2026-12-05 11:08 ` sashiko-bot
2026-12-05 12:18 ` netdev-bot+sashiko
2026-12-04 11:06 ` [PATCH net-next 05/12] net: phy: phy_mux: Add port selection logic Maxime Chevallier
2026-12-05 11:08 ` sashiko-bot
2026-12-05 12:18 ` netdev-bot+sashiko
2026-12-04 11:06 ` [PATCH net-next 06/12] net: phy: phy_mux: Support SFP cage ports Maxime Chevallier
2026-12-05 11:08 ` sashiko-bot
2026-12-05 12:18 ` netdev-bot+sashiko
2026-12-04 11:06 ` [PATCH net-next 07/12] net: phylink: Factor out phylink_clear_phydev() Maxime Chevallier
2026-12-04 11:06 ` [PATCH net-next 08/12] net: phy: phy_mux: Add phy_mux_set_mac_managed_pm() Maxime Chevallier
2026-12-04 11:06 ` [PATCH net-next 09/12] net: phylink: Support PHYs reached through a phy_mux Maxime Chevallier
2026-12-05 11:08 ` sashiko-bot
2026-12-05 12:18 ` netdev-bot+sashiko
2026-12-04 11:06 ` [PATCH net-next 10/12] net: phylink: Support an SFP cage behind " Maxime Chevallier
2026-12-05 11:08 ` sashiko-bot
2026-12-05 12:18 ` netdev-bot+sashiko
2026-12-04 11:06 ` [PATCH net-next 11/12] net: phy: mux: Add the mii-mux-auto driver Maxime Chevallier
2026-12-05 11:08 ` sashiko-bot
2026-12-05 12:18 ` netdev-bot+sashiko
2026-12-04 11:06 ` [PATCH net-next 12/12] ARM: dts: turris-omnia: Describe the WAN port multiplexer Maxime Chevallier
2026-12-05 11:08 ` sashiko-bot [this message]
2026-12-05 12:18 ` 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=sashiko-outbox-251453@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=maxime.chevallier@bootlin.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.