Re: [PATCH net-next 0/2] net: stmmac: dwmac-motorcomm: shutdown hook and Wake-on-LAN from S5

From: Giuseppe Nespolino

Date: Mon Nov 16 2026 - 06:35:33 EST


Hi Magnus,

On Mon, Nov 16, 2026 at 10:17 AM Magnus Leatti wrote:
> Giuseppe, this is the OOB WoL enable you and Yao discussed in the
> s2idle thread [1]: it is only enabled when powering off, because only
> a chip reset disables it again. If you can try "wol g" and a power-off
> on the Slimbook, a laptop would be a good third board.

Tried it on the Slimbook EVO15-A8 (Ryzen 7 8845HS, BIOS N.1.14GOS07).
I ran Ubuntu's 7.0.0-43 kernel with both patches applied to the
distro's dwmac-motorcomm.c and built out of tree, so not net-next
itself. The module also carried my pending reset-on-resume change and
a register dump, neither of which runs at shutdown. Magic packet sent
from another host on the LAN about 75 s after power-off, on AC:

patched wol g, BIOS WoL disabled no wake, 1 of 1
patched wol g, BIOS WoL enabled wake, 1 of 1
distro wol g, BIOS WoL enabled no wake, 1 of 1

One thing worth knowing for laptops: on this one the firmware gates
the root port. \_SB.PCI0.GPP5._PRW (SSDT23) returns {0x0F, 0x04} only
when the BIOS setup "Wake on LAN" option is on, otherwise {0x0F, 0},
and /proc/acpi/wakeup shows GPP5 at S0. It was off here, which is why
my first attempt didn't wake.

I couldn't check for warnings from the shutdown path: the journal
stops before devices are shut down, and I have no serial console or
netconsole on this machine.

Tested-by: Giuseppe Nespolino <g.nespolino@xxxxxxxxx>

As before, I worked through this with an AI assistant; the test runs
and their results are from this machine.

Thanks,
Giuseppe