Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3553466pxf; Mon, 29 Mar 2021 05:33:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz2cR+7mLDwPjRFeqLP0k3S64ZMArVsQZxUSmD9ozoXjjfPgZDrW9WDFvzX2UQwjAobyELH X-Received: by 2002:a05:6402:138f:: with SMTP id b15mr28406109edv.121.1617021214263; Mon, 29 Mar 2021 05:33:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617021214; cv=none; d=google.com; s=arc-20160816; b=zqA9pZ3SD4MIqSxVbTN++xCMisLvz3W41UQIG28xU0GBQXsR5V9Sz7AWKeOIYwYgW2 65MLa3iVY4SkPz8uOSmwugPXYn3UweO9lUbvDYE3Twu2JeWyZmwmB55cwvP+tiP8CdZC Cr87nTjYNT3to8zjkggQqiw8qyaF2HZPZnHNWjSgkJV73kvSHFtSNBd5mrlUD85atje0 2yZNkakvLRtnwoJrd4QJrG5XOkZh8UU43fuxANRQJ0t6bJhZM/21XwM0hiIPOkjdfdfI 954+4qD+Y0OGwyYy4iOtaeZH5RofefdaF0TWr60WFb+vALlspn76quPnPC8ms3sp37zW PuTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:ironport-sdr :ironport-sdr; bh=dqqzk+luOiBs7uZ3VRsh9RNx3zT3+ST1aQKSqLWMx0M=; b=JgqTyl53/2ayQxeJOMpqljMRgLPFW4xmFx7Of6zaouwd1Sx2E1rlWYUZsRFfheVF4K nKYKieVWlMnpXt4FqJZZVK50H0OtG5PjdG0NkSCBETllhqvF8m2DWa12ek5+Yz8PUDXH 1nn9ulD7IuQNKKUEAX7hejcRplIYxUFqKYSci5I+Um7bALKpRk2OotL0lUp4IuCStxs3 TPD14vjADWglymNs2JD1ELuE0RoR+I7sxNQayLOfuBi4TImFoflrmpupX9WfPXdNXbPx Mua2pjhWxVwy9JpI/O1LEOg5aMcMbyLygB/Hirve46SYebQKh7hRWefcG1UwzbqW+NVu ekQg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q23si12573602ejm.194.2021.03.29.05.33.12; Mon, 29 Mar 2021 05:33:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230287AbhC2McS (ORCPT + 99 others); Mon, 29 Mar 2021 08:32:18 -0400 Received: from mga17.intel.com ([192.55.52.151]:11918 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231146AbhC2McM (ORCPT ); Mon, 29 Mar 2021 08:32:12 -0400 IronPort-SDR: 0xQvpAG1mY2cPWEjAPIllAS2rDCicg6XeGm3G7XAkSZ2DL5qg13eb2Mi0K3ArkdDJYJkkYdlex apPpo+o0fO8w== X-IronPort-AV: E=McAfee;i="6000,8403,9937"; a="171551546" X-IronPort-AV: E=Sophos;i="5.81,287,1610438400"; d="scan'208";a="171551546" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Mar 2021 05:32:12 -0700 IronPort-SDR: XNUAT9FGvtKOOmAOJvi+MusdFSjG0rGuN8F+duCts71V2eODpQLH0SNAk5waqN9sVUKzZT1ISZ TxXnF3Jl6O9Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.81,287,1610438400"; d="scan'208";a="515994797" Received: from kuha.fi.intel.com ([10.237.72.162]) by fmsmga001.fm.intel.com with SMTP; 29 Mar 2021 05:32:10 -0700 Received: by kuha.fi.intel.com (sSMTP sendmail emulation); Mon, 29 Mar 2021 15:32:09 +0300 Date: Mon, 29 Mar 2021 15:32:09 +0300 From: Heikki Krogerus To: Krzysztof Kozlowski Cc: Wolfram Sang , linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 05/12] ARM: s3c: mini2440: Constify the software node Message-ID: References: <20210329105047.51033-1-heikki.krogerus@linux.intel.com> <20210329105047.51033-6-heikki.krogerus@linux.intel.com> <709e434f-9e35-bdd1-7785-1938b2fb80ee@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <709e434f-9e35-bdd1-7785-1938b2fb80ee@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 29, 2021 at 12:58:41PM +0200, Krzysztof Kozlowski wrote: > On 29/03/2021 12:50, Heikki Krogerus wrote: > > Additional device properties are always just a part of a > > software fwnode. If the device properties are constant, the > > software node can also be constant. > > > Hi, > > Thanks for your work. > > I did not get the cover letter nor other patches from this set and I > don't see how the i2c uses the swnode. This makes difficult to judge > whether this looks reasonable. At least without the context the title > looks misleading - you add software_node or change to use software_node > instead of constifying it. OK, I'll try to open this up somehow... Whenever additional device properties are added to devices by using the old device property API (device_add_properties()) that also i2c core code uses, in reality a software node is always created to hold those properties. It's just always dynamically allocated. The goal of this series is to prepare the i2c subsystem and drivers for the removal of that old device property API, but I did not see that as relevant info for this patch, because even if we did not in the end remove that old API, this change is still useful. The patch does exactly what the subject says. After this we supply the device a constant software node instead of a dynamically allocated one. thanks, -- heikki