From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 B3DE9383327; Tue, 12 May 2026 16:31:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778603510; cv=none; b=dLy9SJy9B6Y3QYHbklF+LGVxtBAjV2XIy/u53eN2mKD4HFUP2CV554Sql5Dv/5KEwxiT6flBBfb56hBg9EmHxGtWWoY56Zph8nqSJ/JaCYEdinoIYihqoMlymUtGor5tsgxhtebc2cF3FWPqxOexElRnoz/uaof0vSa122li8ps= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778603510; c=relaxed/simple; bh=sblpOtK2lQq5+S4Sem63m6E70MmkLH+vjHxwFv70MY0=; h=Mime-Version:Content-Type:Date:Message-Id:Subject:Cc:To:From: References:In-Reply-To; b=kSFl6kEc8uujDRLlEPMlvbwpCoYs/79npXVnaLPZAFmIDNu8By/NkcTJ0h4FkEb6AUGh9sYx2gRzKnAuvN/AFW52cmQUupQ188XzDTVAcsLxzywD5F9TcXGRXP3jzxe/XdA6JF6NTnAZMgXgjQW61dBVO2Lmmuw+psIwA2lekbs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=uG8OfP8I; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="uG8OfP8I" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E460FC2BCB0; Tue, 12 May 2026 16:31:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1778603510; bh=sblpOtK2lQq5+S4Sem63m6E70MmkLH+vjHxwFv70MY0=; h=Date:Subject:Cc:To:From:References:In-Reply-To:From; b=uG8OfP8IAYLS92UPnfRbS+xC22SKgEeek73+SJbCW/Q1wxhtGAR5HsBttZZgsDjow W/gjOCl57L3P/aY4qksrIRtvOCHnVX+n75Oop6ji+09hKNZEitGmxPiOwazyIhkFtz ZcYnw7GxxMqBYqwv07DYMgLDxTjxK64e7sWNbuXNBOc0KpwZ3m5m36PcNNfWPdOruN 6bV2yOdfJ0VB9wNp/3PpLzXkPdEprKrg6r0aJCLePQyKwQwvtlTZ/VljF8nhGdp5Ii GwvySQJMyKq0nvGiEkcL5JjUA2U1ms35IThuo3f5+8Y0vCMcblIQJ1KRqA2aCVvgsT HU+KchwapPiLQ== Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Tue, 12 May 2026 18:31:44 +0200 Message-Id: Subject: Re: [PATCH v5 3/7] driver core: platform: provide platform_device_add_software_node() Cc: "Greg Kroah-Hartman" , "Rafael J. Wysocki" , "Dmitry Torokhov" , "Brendan Higgins" , "David Gow" , "Rae Moar" , "Andy Shevchenko" , "Maximilian Luz" , "Hans de Goede" , =?utf-8?q?Ilpo_J=C3=A4rvinen?= , "Matthew Brost" , =?utf-8?q?Thomas_Hellstr=C3=B6m?= , "Rodrigo Vivi" , "David Airlie" , "Simona Vetter" , , , , , , , , To: "Bartosz Golaszewski" From: "Danilo Krummrich" References: <20260512-swnode-remove-on-dev-unreg-v5-0-0035eff63812@oss.qualcomm.com> <20260512-swnode-remove-on-dev-unreg-v5-3-0035eff63812@oss.qualcomm.com> In-Reply-To: <20260512-swnode-remove-on-dev-unreg-v5-3-0035eff63812@oss.qualcomm.com> On Tue May 12, 2026 at 1:59 PM CEST, Bartosz Golaszewski wrote: > +int platform_device_add_software_node(struct platform_device *pdev, > + const struct software_node *swnode) > +{ > + return device_add_software_node(&pdev->dev, swnode); I think this should be device_create_managed_software_node(), see also [1]. That said, now that I see the resulting code and the corresponding subletie= s, I think we should reconsider your (well predicted) "temporary platform_device_release_full()" idea for -fixes, while iterating this for -= next. [1] https://lore.kernel.org/driver-core/DIGU67TAWF7W.1DWZMO4XAVK7G@kernel.o= rg/