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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 343B3C61DA7 for ; Fri, 27 Jan 2023 09:26:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232631AbjA0J0M (ORCPT ); Fri, 27 Jan 2023 04:26:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40678 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231954AbjA0J0K (ORCPT ); Fri, 27 Jan 2023 04:26:10 -0500 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A49EA5BB0; Fri, 27 Jan 2023 01:25:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1674811541; x=1706347541; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=ilQhCfGq1xZNQal4i+hMA+lgv7nyH3GuwzD1R+yoQjE=; b=c8L60Pb4ur0+s+dSXKteXZvZyxcF/F9xvQ1uuNrq4SDnvwHXQH/XqkUR 1y86vTysIvXBsp2wCNy7ixAAVWRg1dMsPglIR5M5/WNl6fPKBAMeqxl+Z 86eKbDLc46SBpmoZSTamfVGu34zutEeg8k06TiF4EMI4WsDHrOAFF+OOU 4tA80HiNRn3BlQs1vzpp9hPOsgm8oeJyMT99SrGgYZhLE/kDYdL1iQUBb CSR4E8tv+M1EBiFgqiMSa/sHPskXL5qf2q5hTulEouLW5n6HmxzIYy2aP RAAh8oyIxftgxHUSCunnjiuU1lBTGnUtx+wYJnGQv+DqPxTacwAYfpnZw w==; X-IronPort-AV: E=McAfee;i="6500,9779,10602"; a="307397784" X-IronPort-AV: E=Sophos;i="5.97,250,1669104000"; d="scan'208";a="307397784" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Jan 2023 01:25:26 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10602"; a="693653004" X-IronPort-AV: E=Sophos;i="5.97,250,1669104000"; d="scan'208";a="693653004" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga008.jf.intel.com with ESMTP; 27 Jan 2023 01:25:14 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1pLKys-00FtRL-0p; Fri, 27 Jan 2023 11:25:10 +0200 Date: Fri, 27 Jan 2023 11:25:09 +0200 From: Andy Shevchenko To: Saravana Kannan Cc: Greg Kroah-Hartman , "Rafael J. Wysocki" , Sudeep Holla , Cristian Marussi , Linus Walleij , Bartosz Golaszewski , Thomas Gleixner , Marc Zyngier , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Rob Herring , Frank Rowand , Geert Uytterhoeven , Magnus Damm , Len Brown , Daniel Scally , Heikki Krogerus , Sakari Ailus , Tony Lindgren , Linux Kernel Functional Testing , Naresh Kamboju , Abel Vesa , Alexander Stein , Geert Uytterhoeven , John Stultz , Doug Anderson , Guenter Roeck , Dmitry Baryshkov , Maxim Kiselev , Maxim Kochetkov , Miquel Raynal , Luca Weiss , Colin Foster , Martin Kepplinger , Jean-Philippe Brucker , kernel-team@android.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-acpi@vger.kernel.org Subject: Re: [PATCH v2 03/11] soc: renesas: Move away from using OF_POPULATED for fw_devlink Message-ID: References: <20230127001141.407071-1-saravanak@google.com> <20230127001141.407071-4-saravanak@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230127001141.407071-4-saravanak@google.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 26, 2023 at 04:11:30PM -0800, Saravana Kannan wrote: > The OF_POPULATED flag was set to let fw_devlink know that the device > tree node will not have a struct device created for it. This information > is used by fw_devlink to avoid deferring the probe of consumers of this > device tree node. > > Let's use fwnode_dev_initialized() instead because it achieves the same > effect without using OF specific flags. This allows more generic code to > be written in driver core. ... > - of_node_set_flag(np, OF_POPULATED); > + fwnode_dev_initialized(&np->fwnode, true); of_fwnode_handle(np) ? -- With Best Regards, Andy Shevchenko