Re: [PATCH net-next 1/4] dt-bindings: net: document st,phy-wol property

From: Andrew Lunn
Date: Tue Jul 22 2025 - 17:00:21 EST


> if (!priv->plat->pmt) {

Let me start with maybe a dumb question. What does pmt mean? Why would
it be true?

> struct ethtool_wolinfo wol = { .cmd = ETHTOOL_GWOL };
>
> phylink_ethtool_get_wol(priv->phylink, &wol);
> device_set_wakeup_capable(priv->device, !!wol.supported);
> device_set_wakeup_enable(priv->device, !!wol.wolopts);

Without knowing what pmt means, this is pure speculation.... Maybe it
means the WoL output from the PHY is connected to a pin of the stmmac.
It thus needs stmmac to perform the actual wakeup of the system, as a
proxy for the PHY?

Andrew