From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 12AA1CD8C9D for ; Mon, 8 Jun 2026 07:03:10 +0000 (UTC) Received: from boromir.ozlabs.org (localhost [127.0.0.1]) by lists.ozlabs.org (Postfix) with ESMTP id 4gYjg11k3Kz2yRF; Mon, 08 Jun 2026 17:03:09 +1000 (AEST) Authentication-Results: lists.ozlabs.org; arc=none smtp.remote-ip=172.234.252.31 ARC-Seal: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1780902189; cv=none; b=Jdi6etaSpwXS+9x/U5tZuOTEpttoToD2eMBNPNyDNn0mgLdbIigu0gRuXRjm9EsXiq0YufVkQnUTKoHsRO1smOIaCL2oU82HoNC0V2c2Qh2TUH4P/ztsPE/t2NnlZR1EIx5dcSftatHTOE17Ao52tI8HUtKB12aU0zYMdrBzb4sEmoYGkuAKCwn2YDqF5AbDz4yfnYM/tUj4dGTQh5V1xCgtDIlGKUd2GKgAniv6AZemqiPaIWU3zIbSRjWqlF4j2EqLceNugJw/qnP9Rh2SSQlU6to8Os38nVV5SOys9CcyHdtZp+C8IiNQM3YgCaFB37mXt9fsZMYLJZSE02Su8Q== ARC-Message-Signature: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1780902189; c=relaxed/relaxed; bh=10dFrUC/6z32jGP8zynGCsubM/uQN+Pn4UzSAjajejM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=fv7s6pX86BM4stv803FXkHfFy6Q/8aCcX/tYwiYzhmNmUZ9bxMG2+4IUhJWiZokOR50efFXjiMg51gHJPKqRFcppLCayI6IaYIABSI+NMkzgVyDu9y7/vLzblWOnrIxdXn0gqnXLFQu5BMV60+L0+zZta9qeweYqNrPBFOOA7S3oeSlpDW2APrLE9rCz1kQMXLSCwZ90iexBqJp/NtCMD41M/WhefB/F7wKhOtNjSjM3Qmyz/pcWMAavD+EWbiEx8EAI/3NbJS/ME+vqwUeDl8zuKp+H7Ark8Y7e+n8Jxeu8Uhi+H0OFFLXxADCIqw92Bb22EAY9lmfGqt8lEgAS5Q== ARC-Authentication-Results: i=1; lists.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=kernel.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Ds8FYyBn; dkim-atps=neutral; spf=pass (client-ip=172.234.252.31; helo=sea.source.kernel.org; envelope-from=johan@kernel.org; receiver=lists.ozlabs.org) smtp.mailfrom=kernel.org Authentication-Results: lists.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=kernel.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Ds8FYyBn; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=kernel.org (client-ip=172.234.252.31; helo=sea.source.kernel.org; envelope-from=johan@kernel.org; receiver=lists.ozlabs.org) Received: from sea.source.kernel.org (sea.source.kernel.org [172.234.252.31]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4gYjg033w0z2xRs for ; Mon, 08 Jun 2026 17:03:08 +1000 (AEST) Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by sea.source.kernel.org (Postfix) with ESMTP id C8DA242DD2; Mon, 8 Jun 2026 07:03:05 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 980A31F0089A; Mon, 8 Jun 2026 07:03:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1780902185; bh=10dFrUC/6z32jGP8zynGCsubM/uQN+Pn4UzSAjajejM=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=Ds8FYyBnv2B771u4jaYArIjXJx5UpC1WUxFyjTQDVhtf+l1qYyu5NwqVY+oOzuc6C YgqUxqU4gV2VnsPffdjORqDHElM1kd63ltUYUyVdF4TYaUEWtF2JD2pU6poVM1ArWL lMUinVJ6futH/7sdnAjzkFIuaCbufZx8fG+uk80ePL2EOH8cH49KxCDKv1sJ8txsUy Qpsb63Y/49p0ZHrtiY6ZwtKegiVpiUrgHwkrzV4CAq0F0zJwJnRUTZXAStb/+L2/kr FA/3lev2TYsrVndJqyIIwBECwbTBWrmYCkIgZRjk+HnLbC8Mzg1CGk5xkLhbQhHDnH KQOX+wjtpEfGA== Received: from johan by xi.lan with local (Exim 4.99.3) (envelope-from ) id 1wWU0k-00000000LzQ-1V0O; Mon, 08 Jun 2026 09:03:02 +0200 Date: Mon, 8 Jun 2026 09:03:02 +0200 From: Johan Hovold To: Andy Shevchenko Cc: Bartosz Golaszewski , Lee Jones , Mark Brown , Thierry Reding , Sebastian Hesselbarth , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Srinivas Kandagatla , Greg Kroah-Hartman , Vinod Koul , "Rafael J. Wysocki" , Danilo Krummrich , Rob Herring , Saravana Kannan , Madhavan Srinivasan , Michael Ellerman , Nicholas Piggin , "Christophe Leroy (CS GROUP)" , Andi Shyti , Joerg Roedel , Will Deacon , Robin Murphy , Doug Berger , Florian Fainelli , Broadcom internal kernel review list , Ulf Hansson , Frank Li , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Matthew Brost , Thomas =?utf-8?Q?Hellstr=C3=B6m?= , Rodrigo Vivi , David Airlie , Simona Vetter , Peter Chen , Paul Cercueil , Bin Liu , Philipp Zabel , Maximilian Luz , Hans de Goede , Ilpo =?utf-8?B?SsOkcnZpbmVu?= , Krzysztof Kozlowski , Benjamin Herrenschmidt , brgl@kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-sound@vger.kernel.org, driver-core@lists.linux.dev, devicetree@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-i2c@vger.kernel.org, iommu@lists.linux.dev, linux-pm@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, intel-xe@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-usb@vger.kernel.org, linux-mips@vger.kernel.org, platform-driver-x86@vger.kernel.org Subject: Re: [PATCH 08/23] driver core: platform: provide platform_device_set_of_node_from_dev() Message-ID: References: <20260521-pdev-fwnode-ref-v1-0-88c324a1b8d2@oss.qualcomm.com> <20260521-pdev-fwnode-ref-v1-8-88c324a1b8d2@oss.qualcomm.com> X-Mailing-List: linuxppc-dev@lists.ozlabs.org List-Id: List-Help: List-Owner: List-Post: List-Archive: , List-Subscribe: , , List-Unsubscribe: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Fri, Jun 05, 2026 at 05:53:04PM +0300, Andy Shevchenko wrote: > On Fri, Jun 05, 2026 at 02:16:17PM +0200, Johan Hovold wrote: > > On Wed, Jun 03, 2026 at 12:44:55AM +0300, Andy Shevchenko wrote: > > > On Thu, May 21, 2026 at 10:36:31AM +0200, Bartosz Golaszewski wrote: > > > > Provide a platform-specific variant of device_set_of_node_from_dev(). In > > > > addition to bumping the reference count of the OF node being assigned, > > > > it also assigns the fwnode of the platform device. > > > > > > Can we rather investigate the way how to make that of node reuse thingy > > > (which is used solely by pin control) differently and then drop this confusing > > > device_set_of_node_from_dev() call altogether? > > > > No, that call is needed. See commit 4e75e1d7dac9 ("driver core: add > > helper to reuse a device-tree node") for details. > > Bart fixes the problem with the platform driver. At the result this will be > the only device_set_node() + 'reused = true'. As for 'reused' flag, the need > is only for pinmux/pin control stuff. And any other resource which may (eventually) be claimed by driver core or bus code. > The question here is if there is a better > way to make that 'reused' be done automatically without need of setting some > flag explicitly. That's not really relevant to the series at hand. If this is something we want to merge then you need to continue setting the flag in order not to cause regressions. Johan