[PATCH net v2] net: mdio: mux-meson-g12a: keep the MAC data path when switching MDIO
Igor Velkov
iav at iav.lv
Tue Nov 24 13:30:25 PST 2026
Hi Martin,
On Tue, Nov 24, 2026 at 9:50 PM Martin Blumenstingl
<martin.blumenstingl at googlemail.com> wrote:
> I have just reviewed Lucas patch [0] which adds Ethernet support for the T7 SoC.
> He kept the internal MDIO mux path disabled by default, so boards
> using it will have to enable it.
> Have you tested that approach as well? If not: it would be great if
> you could investigate the pros/cons of your approach vs. Lucas'
> approach.
Not on hardware. By the code it works: mdio-mux registers only the
available child buses, and the g12a driver writes CNTL2 only from
switch_fn. With int_mdio disabled the internal bus never exists, so
CNTL2 only ever gets the external setting.
But that avoids the bug rather than fixes it. The MDIO source and the
data path are separate CNTL2 bits; the driver switched them together.
Disabling int_mdio only keeps that path from running, and only on
boards whose DT does it. The G12A/G12B/SM1/S4/C3 dtsi enable int_mdio,
and ten boards use the internal PHY relying on that. Changing the
default touches all of them, and existing DTBs keep the bug.
The driver change removes the coupling: the data path follows the PHY
the MAC attaches, with any DTB. For a new SoC like T7, int_mdio
disabled in the dtsi is ordinary DT practice, and the two combine. If
one has to pick, the driver change: it fixes the cause.
Igor
More information about the linux-arm-kernel
mailing list