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 92987C63797 for ; Mon, 30 Jan 2023 20:00:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237418AbjA3UAv (ORCPT ); Mon, 30 Jan 2023 15:00:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50094 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236260AbjA3UAt (ORCPT ); Mon, 30 Jan 2023 15:00:49 -0500 Received: from mail-pj1-x102f.google.com (mail-pj1-x102f.google.com [IPv6:2607:f8b0:4864:20::102f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A267945F65 for ; Mon, 30 Jan 2023 12:00:47 -0800 (PST) Received: by mail-pj1-x102f.google.com with SMTP id n20-20020a17090aab9400b00229ca6a4636so16722365pjq.0 for ; Mon, 30 Jan 2023 12:00:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=oYPPhRQH7ubPQanie/vKOvvHKXQgtOiqcTGLviBDhmA=; b=VuIJDnbFxTUIxWa8L1VWYdb9MI+Uw4XrbLFKat84mMs9afmGaZW62Y8sKNZY5LBIF4 +Ul6XxbH/vm/jWs4c0ZPc3jWE3uAo28avKQqTO/OylcU85C+pB8xolsbJyGsGs/rL36V ZSGY0QiNRBwyMe6LPf8vVH/qahQuHtl7YMtCVevzTZ34CA2joFRibts3ttJxVgZaxcTx l/FqMCCgujpobwNcfJfN4c6OBuaJYFlasSYS1viKL0qQV/M1/KYatfFCLgEyymahIMwl 4hVV55hFljOlpo+yPWWpOYotAjaJ3htnES4ajEtyGZ/W45QNCPKfgFhg3OCpw5z0Gfbg 1ESw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=oYPPhRQH7ubPQanie/vKOvvHKXQgtOiqcTGLviBDhmA=; b=BsXE+U1XjXR2XXMiUWQTWwHdvN5nobUHBPIe1t1J907u03si6xrNnstMGQMedaqQFA ILXxvpeWfWAUCW+OaEEq9qxc1MqK+wHf0bqGpDlzt8GOWl7xWyGuBo9T88+hZDn15ce2 AkGkIxvBIIdc3L2vgLOQko6DBbFZtoGwCuDQ/awOd/UNnsQX5B8RPrd69PvO8BjDNEpW 7ZHV//grm36bhUwUwi+06DR3s8NezDw9kO52LkBUMAGmCbXe0CCc+Ge7pNK+LMlcG9rO r/uMrWKUZwRdgWqtWFou2RF3jbdAqCWRHGmKjV5vCbuA92QNrvHriUjBL0bLrD415PSu JSEg== X-Gm-Message-State: AO0yUKV7Vdwk95Dl8DH8iXARJruoIXi42xWVTFcORc2i2uHxTfPJPPRF gZDLEfu/VSI7cwua55EakbVAEONY4eeJ5aDffQQ3tg== X-Google-Smtp-Source: AK7set+H0YyjCWkJd7M+yIj4eRkqAmXNub+KUOd2n+yHCGliVqKml+ieu+Re/d5tqMId+oQWqascMv0yHsacweeoFCU= X-Received: by 2002:a17:902:d64d:b0:196:7c6e:eb8d with SMTP id y13-20020a170902d64d00b001967c6eeb8dmr912246plh.12.1675108846782; Mon, 30 Jan 2023 12:00:46 -0800 (PST) MIME-Version: 1.0 References: <20230127001141.407071-1-saravanak@google.com> <20230127001141.407071-4-saravanak@google.com> In-Reply-To: From: Saravana Kannan Date: Mon, 30 Jan 2023 12:00:10 -0800 Message-ID: Subject: Re: [PATCH v2 03/11] soc: renesas: Move away from using OF_POPULATED for fw_devlink To: Geert Uytterhoeven 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 , Andy Shevchenko , Daniel Scally , Heikki Krogerus , Sakari Ailus , Tony Lindgren , Linux Kernel Functional Testing , Naresh Kamboju , Abel Vesa , Alexander Stein , 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 Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 30, 2023 at 12:43 AM Geert Uytterhoeven wrote: > > Hi Saravana, > > On Sat, Jan 28, 2023 at 8:19 AM Saravana Kannan wrote: > > On Fri, Jan 27, 2023 at 12:11 AM Geert Uytterhoeven > > wrote: > > > On Fri, Jan 27, 2023 at 1:11 AM 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. > > > > > > > > Signed-off-by: Saravana Kannan > > > > > > Thanks for your patch! > > > > > > > --- a/drivers/soc/renesas/rcar-sysc.c > > > > +++ b/drivers/soc/renesas/rcar-sysc.c > > > > @@ -437,7 +437,7 @@ static int __init rcar_sysc_pd_init(void) > > > > > > > > error = of_genpd_add_provider_onecell(np, &domains->onecell_data); > > > > if (!error) > > > > - of_node_set_flag(np, OF_POPULATED); > > > > + fwnode_dev_initialized(&np->fwnode, true); > > > > > > As drivers/soc/renesas/rmobile-sysc.c is already using this method, > > > it should work fine. > > > > > > Reviewed-by: Geert Uytterhoeven > > > i.e. will queue in renesas-devel for v6.4. I hope you meant queue it up for 6.3 and not 6.4? > > > > Thanks! Does that mean I should drop this from this series? If two > > maintainers pick the same patch up, will it cause problems? I'm > > eventually expecting this series to be picked up by Greg into > > driver-core-next. > > Indeed. Patches for drivers/soc/renesas/ are supposed to go upstream > through the renesas-devel and soc trees. This patch has no dependencies > on anything else in the series (or vice versa), so there is no reason > to deviate from that, and possibly cause conflicts later. This series is supposed to fix a bunch of issues and I vaguely think the series depends on this patch to work correctly on some Renesas systems. You are my main renesas person, so it's probably some issue you hit. Is you pick it up outside of this series I need to keep asking folks to pick up two different patch threads. I don't have a strong opinion, just a FYI. If you can take this patch soon, I don't have any concerns. > BTW, I will convert to of_node_to_fwnode() while applying. Sounds good. -Saravana