Netdev List
 help / color / mirror / Atom feed
From: FUJITA Tomonori <tomo@flapping.org>
To: johan@kernel.org
Cc: fujita.tomonori@gmail.com, andrew+netdev@lunn.ch,
	davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org,
	pabeni@redhat.com, netdev@vger.kernel.org, hfdevel@gmx.net
Subject: Re: [PATCH net-next v3] net: tn40xx: avoid early firmware node release
Date: Mon, 23 Nov 2026 21:29:09 +0900 (JST)	[thread overview]
Message-ID: <20261123.212909.2235963510215664841.tomo@flapping.org> (raw)
In-Reply-To: <20261118163602.1141227-1-johan@kernel.org>

On Wed, 18 Nov 2026 17:36:02 +0100
Johan Hovold <johan@kernel.org> wrote:

> The mdiobus allocated by tn40_mdiobus_init() has no primary firmware
> node so its firmware node pointer points to the secondary software node
> added by device_add_software_node() and whose reference is released by
> device_remove_software_node().

[...]

> Avoid ever releasing the MDIO software node before it is deregistered
> and fix the asymmetry and layering violation by making the software node
> a primary node which is released when freeing the mdiobus.
> 
> Cc: Hans-Frieder Vogt <hfdevel@gmx.net>
> Signed-off-by: Johan Hovold <johan@kernel.org>

Reviewed-by: FUJITA Tomonori <fujita.tomonori@gmail.com>

      reply	other threads:[~2026-11-23 12:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-18 16:36 [PATCH net-next v3] net: tn40xx: avoid early firmware node release Johan Hovold
2026-11-23 12:29 ` FUJITA Tomonori [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=20261123.212909.2235963510215664841.tomo@flapping.org \
    --to=tomo@flapping.org \
    --cc=andrew+netdev@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=edumazet@kernel.org \
    --cc=fujita.tomonori@gmail.com \
    --cc=hfdevel@gmx.net \
    --cc=johan@kernel.org \
    --cc=kuba@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