RE: [PATCH 2/2] net: axienet: Fix resource release ordering
From: Gupta, Suraj <hidden>
Date: 2026-01-13 05:32:32
Also in:
linux-arm-kernel, linux-clk, lkml
[AMD Official Use Only - AMD Internal Distribution Only]
-----Original Message----- From: Sean Anderson <sean.anderson@linux.dev> Sent: Monday, January 12, 2026 8:23 PM To: Jakub Kicinski <kuba@kernel.org>; Gupta, Suraj <redacted> Cc: mturquette@baylibre.com; sboyd@kernel.org; Pandey, Radhey Shyam [off-list ref]; andrew+netdev@lunn.ch; davem@davemloft.net; edumazet@google.com; pabeni@redhat.com; Simek, Michal [off-list ref]; linux@armlinux.org.uk; linux- clk@vger.kernel.org; linux-kernel@vger.kernel.org; netdev@vger.kernel.org; linux-arm-kernel@lists.infradead.org; bmasney@redhat.com Subject: Re: [PATCH 2/2] net: axienet: Fix resource release ordering Caution: This message originated from an External Source. Use proper caution when opening attachments, clicking links, or responding. On 1/10/26 14:53, Jakub Kicinski wrote:quoted
On Fri, 9 Jan 2026 12:40:51 +0530 Suraj Gupta wrote:quoted
Device-managed resources are released after manually-managed resources. Therefore, once any manually-managed resource is acquired, all further resources must be manually-managed too.only for resources which have dependencies. Please include in the commit message what exactly is going wrong in this driver. The commit under Fixes seems to be running ioremap, I don't see how that matters vs netdev allocation for example..In the series I originally submitted this in, I wanted to add a devm resources (mdio bus etc.) at the end of probe that required the clocks to be running. But as a standalone patch this is more of a cleanup.
Thanks Sean, I will modify the commit description accordingly and mention only the conversion to the `devm` version of the clock and netdev allocation APIs. Regards, Suraj
quoted
quoted
Convert all resources before the MDIO bus is created into device-managed resources. In all cases but one there are already devmvariants available.