AML-A311D-CC Ethernet link down after boot

I’ve been using ArchLinuxARM on the Alta.

I use the standard bootloader that’s shipped on the SPI. I run ArchLinuxARM’s linux-aarch64 kernel package.

Ever since the stmmac was compiled into the kernel, the ethernet probes fine on boot.

I previously asked about the upstreaming progress on fix that’s in the libre computer kernel to wait for the phy that’s behind the mdio-mux.

This is what shows up in my dmseg

[   12.089555] meson8b-dwmac ff3f0000.ethernet end0: renamed from eth0
[   12.247909] meson8b-dwmac ff3f0000.ethernet end0: Register MEM_TYPE_PAGE_POOL RxQ-0
[   12.335955] meson8b-dwmac ff3f0000.ethernet end0: PHY [mdio_mux-0.0:00] driver [RTL8211F Gigabit Ethernet] (irq=30)
[   12.374602] meson8b-dwmac ff3f0000.ethernet end0: No Safety Features support found
[   12.382827] meson8b-dwmac ff3f0000.ethernet end0: PTP not supported by HW
[   12.384510] meson8b-dwmac ff3f0000.ethernet end0: configuring for phy/rgmii link mode
[   15.042409] meson8b-dwmac ff3f0000.ethernet end0: Link is Up - 1Gbps/Full - flow control rx/tx

Before, if the phy was not able to be detected, I could manually networkctl up end0after logging in, and the ethernet device could be detected.

                  -`                     alarm@alta
                 .o+`                    ----------
                `ooo/                    OS: Arch Linux ARM aarch64
               `+oooo:                   Host: aml-a311d-cc
              `+oooooo:                  Kernel: Linux 6.19.0-2-aarch64-ARCH
              -+oooooo+:                 Uptime: 18 hours, 40 mins
            `/:-:++oooo+:                Packages: 412 (pacman)
           `/++++/+++++++:               Shell: bash 5.3.9
          `/++++++++++++++:              Terminal: /dev/pts/0
         `/+++ooooooooooooo/`            CPU: g12b (6) @ 2.21 GHz
        ./ooosssso++osssssso+`           GPU: Amlogic meson-g12a-mali [Integrated]
       .oossssso-````/ossssss+`          Memory: 2.07 GiB / 3.68 GiB (56%)
      -osssssso.      :ssssssso.         Swap: Disabled
     :osssssss/        osssso+++.        Disk (/): 20.57 GiB / 28.26 GiB (73%) - ext4
    /ossssssss/        +ssssooo/-        Local IP (end0): 192.168.20.182/24
  `/ossssso+/:-        -:/+osssso+-      Locale: en_US.UTF-8