[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20250114152729.4307e3a8@kernel.org>
Date: Tue, 14 Jan 2025 15:27:29 -0800
From: Jakub Kicinski <kuba@...nel.org>
To: David Oberhollenzer <david.oberhollenzer@...ma-star.at>
Cc: netdev@...r.kernel.org, andrew@...n.ch, Julian.FRIEDRICH@...quentis.com,
f.fainelli@...il.com, olteanv@...il.com, davem@...emloft.net,
edumazet@...gle.com, pabeni@...hat.com, linux-kernel@...r.kernel.org,
upstream+netdev@...ma-star.at
Subject: Re: [PATCH v3] net: dsa: mv88e6xxx: propperly shutdown PPU
re-enable timer on destroy
On Mon, 13 Jan 2025 09:49:12 +0100 David Oberhollenzer wrote:
> @@ -7323,6 +7323,8 @@ static int mv88e6xxx_probe(struct mdio_device *mdiodev)
> mv88e6xxx_g1_irq_free(chip);
> else
> mv88e6xxx_irq_poll_free(chip);
> +out_phy:
> + mv88e6xxx_phy_destroy(chip);
> out:
> if (pdata)
> dev_put(pdata->netdev);
If this is the right ordering the order in mv88e6xxx_remove()
looks suspicious. We call mv88e6xxx_phy_destroy() pretty early
and then unregister from DSA. Isn't there a window where DSA
callbacks can reschedule the timer?
--
pw-bot: cr
Powered by blists - more mailing lists