mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Magnus Leatti <magnusleatti@kernelriot.com>
To: netdev-bot+sashiko@kernel.org
Cc: Yao Zi <me@ziyao.cc>,
	Maxime Chevallier <maxime.chevallier@bootlin.com>,
	Andrew Lunn <andrew+netdev@lunn.ch>,
	"David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@kernel.org>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	Maxime Coquelin <mcoquelin.stm32@gmail.com>,
	Alexandre Torgue <alexandre.torgue@foss.st.com>,
	Giuseppe Nespolino <g.nespolino@gmail.com>,
	netdev@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com,
	linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH net-next v2 2/2] net: stmmac: dwmac-motorcomm: support Wake-on-LAN from S5
Date: Tue, 24 Nov 2026 10:18:05 -0300	[thread overview]
Message-ID: <20261124131805.3303833-1-magnusleatti@kernelriot.com> (raw)
In-Reply-To: <179551786682.3135.159994678754691253@kernel.org>

On Tue, Nov 24, 2026 at 10:57:46AM +0000, netdev-bot+sashiko@kernel.org wrote:
> [Severity: Medium]
> Can wake become stale between rtnl_unlock() and stmmac_dvr_remove()?

Yes. unregister_netdev() takes RTNL, so I can't hold it across remove.
And power/wakeup doesn't take RTNL anyway. Worst case: someone disables
WoL *during* power-off and it stays armed.

> [Severity: Medium]
> What happens here on boards whose eFuse holds no MAC address?

I don't know, and I can't test it: my board has the eFuse programmed.
Probe already warns about the random MAC on those boards.

> [Severity: Low]
> Is it safe to change WOL_CTRL immediately after motorcomm_reset(), with no
> delay?
[...]
> On some boards that post-reset load might write WOL_CTRL, for example
> through an eFuse patch entry. Could it then overwrite WOL_CTRL_PKT_EN, so
> the device powers off with packet wake disabled?

That's a guess. The delay in probe is for the eFuse reads, and the
write sticks here: without that bit the chip doesn't wake, and it woke
9 of 9.

Magnus

      reply	other threads:[~2026-11-24 13:18 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-20 10:27 [PATCH net-next v2 0/2] net: stmmac: dwmac-motorcomm: shutdown hook and " Magnus Leatti
2026-11-20 10:27 ` [PATCH net-next v2 1/2] net: stmmac: dwmac-motorcomm: remove the device at shutdown Magnus Leatti
2026-11-24 10:57   ` netdev-bot+sashiko
2026-11-24 13:06     ` Magnus Leatti
2026-11-20 10:27 ` [PATCH net-next v2 2/2] net: stmmac: dwmac-motorcomm: support Wake-on-LAN from S5 Magnus Leatti
2026-11-24 10:57   ` netdev-bot+sashiko
2026-11-24 13:18     ` Magnus Leatti [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261124131805.3303833-1-magnusleatti@kernelriot.com \
    --to=magnusleatti@kernelriot.com \
    --cc=alexandre.torgue@foss.st.com \
    --cc=andrew+netdev@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=edumazet@kernel.org \
    --cc=g.nespolino@gmail.com \
    --cc=kuba@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-stm32@st-md-mailman.stormreply.com \
    --cc=maxime.chevallier@bootlin.com \
    --cc=mcoquelin.stm32@gmail.com \
    --cc=me@ziyao.cc \
    --cc=netdev-bot+sashiko@kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®