From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-172.mta1.migadu.com (out-172.mta1.migadu.com [95.215.58.172]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 90D4627CB35 for ; Mon, 12 Jan 2026 14:54:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768229646; cv=none; b=h+NKpWS3WOBT8LpEDJxUN8cmqdcRnk3jWByKaZn5je1NMKLJsjJ9t0vlK90UfdO2KVK8dVQPJkpjoxrgVboCdekFV5sbVVUuPpGsNHSAeKKcnDLFeh62C1z6AXxAdzAQWnbD7lZxJmeCtxnmmlX/5xEPvjxBFblD7ZovOTH1sNc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768229646; c=relaxed/simple; bh=vMdMbkaj9FIBvbrqlM+Ht0cnW5A4bq8nE13c3jx00b4=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=XPNzcJnOGL+hSwGn9dW3D7jMcJxXo64OqSQMvRi/3WXrfTZ6HgHztA+/4KA+4dD2pxNJlJs2noUvYOFInaKQNRIv9NePsI9kyOl13/ruJcDOAyKGqDQc2+wWxbSwyc3H2pAWIS98BoVVjLHa2dCHSpQm+ye1uExRQCMf80h5uxA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=CYSKjae3; arc=none smtp.client-ip=95.215.58.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="CYSKjae3" Message-ID: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1768229632; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=WJRXUcKkDog21NY9arGh1QRo0yXqzWSWI32WfNW/NXU=; b=CYSKjae3S5FACFkMnLMzwVE2kPTt9AMRFN7mSAGW7ME7h8gCmWVnkY/8iXTwGDn78taKG+ dlMM0E4bxhFjRCNUCQ0EdYqXcA3SfGlSkxhCK1yFDn7rUu5Sk2zK83MCOlOKqDNNxxeFqM XELoFN5cAGbovb03AKSOu9bx+yyVOnI= Date: Mon, 12 Jan 2026 09:53:28 -0500 Precedence: bulk X-Mailing-List: linux-clk@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: [PATCH 2/2] net: axienet: Fix resource release ordering To: Jakub Kicinski , Suraj Gupta Cc: mturquette@baylibre.com, sboyd@kernel.org, radhey.shyam.pandey@amd.com, andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@google.com, pabeni@redhat.com, michal.simek@amd.com, 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 References: <20260109071051.4101460-1-suraj.gupta2@amd.com> <20260109071051.4101460-3-suraj.gupta2@amd.com> <20260110115306.4049b2cb@kernel.org> Content-Language: en-US X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Sean Anderson In-Reply-To: <20260110115306.4049b2cb@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT On 1/10/26 14:53, Jakub Kicinski wrote: > On Fri, 9 Jan 2026 12:40:51 +0530 Suraj Gupta wrote: >> 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. >> Convert all resources before the MDIO bus is created into device-managed >> resources. In all cases but one there are already devm variants available.