reform-hw-setup: PHY workaround breaks when dwmac_meson8b is in use
I believe that on some a311d systems, specifically minimal ones running NetwrokManager, reform-hw-setup is running init_a311d too early in the boot process. The PHY workaround in the script for the a311d fails:
× reform-hw-setup.service - MNT Reform Hardware Defaults Setup
Loaded: loaded (/usr/lib/systemd/system/reform-hw-setup.service; enabled; preset: disabled)
Active: failed (Result: exit-code) since Sat 2026-05-02 19:07:04 PDT; 27s ago
Invocation: 98fe69af20e14bef952b427003cb6184
Docs: man:reform-hw-setup(1)
Process: 832 ExecStart=/usr/bin/reform-hw-setup (code=exited, status=1/FAILURE)
Main PID: 832 (code=exited, status=1/FAILURE)
Mem peak: 4.1M
CPU: 80ms
May 02 19:07:04 daisuke reform-hw-setup[849]: Items: 'IN 0' 'IN 1' 'IN 2' 'IN 3' 'IN 4' 'IN 5' 'IN 6' 'IN 7' 'IN 8' 'IN 9' 'IN 10' 'IN 11' 'IN 12' 'IN 13' 'IN 14' 'IN 15'
May 02 19:07:04 daisuke reform-hw-setup[849]: Item0: 'IN 1'
May 02 19:07:04 daisuke reform-hw-setup[850]: Simple mixer control 'TODDR_A SRC SEL',0
May 02 19:07:04 daisuke reform-hw-setup[850]: Capabilities: enum
May 02 19:07:04 daisuke reform-hw-setup[850]: Items: 'IN 0' 'IN 1' 'IN 2' 'IN 3' 'IN 4' 'IN 5' 'IN 6' 'IN 7'
May 02 19:07:04 daisuke reform-hw-setup[850]: Item0: 'IN 1'
May 02 19:07:04 daisuke reform-hw-setup[853]: rmmod: ERROR: Module dwmac_meson8b is in use
May 02 19:07:04 daisuke systemd[1]: reform-hw-setup.service: Main process exited, code=exited, status=1/FAILURE
May 02 19:07:04 daisuke systemd[1]: reform-hw-setup.service: Failed with result 'exit-code'.
May 02 19:07:04 daisuke systemd[1]: Failed to start MNT Reform Hardware Defaults Setup.
A simple fix might be to bring down the interface before trying to unload the module.