Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp6725097rwb; Tue, 9 Aug 2022 23:14:31 -0700 (PDT) X-Google-Smtp-Source: AA6agR6UCaC7R30uFC7Ate1Bh+2OHYz9FJyXeyke6Yai5f69UHy+EkNdaMaLEWHfmAIUSeL3uSjc X-Received: by 2002:a17:907:720a:b0:731:76df:5ac1 with SMTP id dr10-20020a170907720a00b0073176df5ac1mr6623174ejc.417.1660112070909; Tue, 09 Aug 2022 23:14:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660112070; cv=none; d=google.com; s=arc-20160816; b=vtfSj9HN4BUbFwb+dTGoJTyaQ3lY+sjhUpEk9kf7ILFw/aTi2KPE7E810J8fJ+uvZz bgb+2dAVpeJzWZrM3JFy5xDWdtEWBFxifZpbMGHzGUaM57uXhsFY2hIrE8fKZ3lzhRcZ 1nyPYgOxCNS1HlwcJQc0Q93XayBLzrXXionEprGYcPcYyyQ5HoOj0jcsiA65DtcckuLG Rpi+OPQ1RAmavOv+j8ebPab/xBXyCpXHKr/SWbYC4/DbD4QC3fkOxCsPLUajeSHJAcV7 qz5Yg8RYZRmTK530jwjvP4x6uikewi/nMzy4hgs2oj7kiFbU8+7riRqtM/91uumAICOq 2Qqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:references:mime-version :message-id:in-reply-to:date:dkim-signature; bh=YZpb5QMLSiLGJVomN8fbI7EvU2NAh/GQGzK/ScajhVo=; b=POUrFDFtWTCsf2auh2+VZOdZxnv9egW1xulgLRGHbJWviD/Lv5HGx86Mx7U6FDvD6S yvgcnz7tS1jNGfumNw5hIG6DbwH4AC4ycdTKXgSqdIcR9KCLyWyGieOP3GOepNgcPuSi 26HvaAOIkf7X0VUVsqBlX3pPXsbyuyiuEMGUxJQGCOm7bazpE8ccT5f4ZcM3ZCjFFMSB wWpfDJ/zBho0XG1vlKvWzaWdTlw+V7Hk7HsP/+O08SgXan2Yjb1HDHfXuYovsYl444R5 H2vQe5nsZ5sw9pfiDLyD1Kq16qO0T0DK/f3JjUAGECRgBV99bM8lCSc/kQZqgS7VOUy0 l0yQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=kdufMKJa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b10-20020a056402278a00b0043d2baaf94bsi4369220ede.357.2022.08.09.23.14.05; Tue, 09 Aug 2022 23:14:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=kdufMKJa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231210AbiHJGBe (ORCPT + 99 others); Wed, 10 Aug 2022 02:01:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59920 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231175AbiHJGA5 (ORCPT ); Wed, 10 Aug 2022 02:00:57 -0400 Received: from mail-yb1-xb49.google.com (mail-yb1-xb49.google.com [IPv6:2607:f8b0:4864:20::b49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD57D6543 for ; Tue, 9 Aug 2022 23:00:56 -0700 (PDT) Received: by mail-yb1-xb49.google.com with SMTP id m11-20020a5b040b000000b0066fcc60d1a0so11399548ybp.19 for ; Tue, 09 Aug 2022 23:00:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:from:subject:references:mime-version:message-id:in-reply-to :date:from:to:cc; bh=YZpb5QMLSiLGJVomN8fbI7EvU2NAh/GQGzK/ScajhVo=; b=kdufMKJarzPJUSUXa9Lkyppvpmugt3JrF1lgKjodq0AS8PmSnyNnsq5cSojkvWFydP 4SlosfOvXqDnb9Otj4vuNf4C9sjbZeyEg/pJMTXQe026M/y9/1hjbxROqrTHxBCE1754 oBloAVDejrDfhsaIqrAL6utmIa3sceIQqZEseSzOdVx/5c7Xg+AOdDBJ+nkSyNuwTOPd qotXnqs5f2mFDey1C4raGc6DlxYepToi5rZGMEx5ZpcTB4d54i3ScEmzcurJy+/1YfTe CH/n1d3h37wT/JtauKwkMlnMGxKOuLKCxLdzeVmnrYXONHl60Vld8ABImyxhgBPBLYqj frqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:from:subject:references:mime-version:message-id:in-reply-to :date:x-gm-message-state:from:to:cc; bh=YZpb5QMLSiLGJVomN8fbI7EvU2NAh/GQGzK/ScajhVo=; b=mPtVHu/z+X2I4vOAXBmoJ1GMAAXJeUweWsrWxplMModTFgRgkIIsmqsXh6gMclbco9 yX8ApakcG9ciCKdBXOxa2FXhgHl+d1HEmHMd9nKXOclfC/oFIy1UkMXcGfm7zzqvIW6f K4cy9K79sNUKQAWKFK1d/mA3S1OcKhSiUQSvGC07aerSrf9rMAyOKmTGVd8AqZ62yFSS HA/AJBhzj64tdqdlmV+zI8iEqeuJGZqwpLZWYu469dZ8py3zVBkvKRVUD86wwf+5/KkL zjUdDl6eO1fVY2C9oGMixkcG/wZ8+uh1vV2ua1FcCmEK5N9SdtFRJtVbEgX/Uf4cXMXL 4W5g== X-Gm-Message-State: ACgBeo0nefQNkROqhtoF4Z+n4QW2bvZfCxdVB0akQiuSeoJyKv2snaIp was37ttgcaKUHPcGnHv/1ueEakz/D9+Nv0M= X-Received: from saravanak.san.corp.google.com ([2620:15c:2d:3:f21:76ca:766f:e0ab]) (user=saravanak job=sendgmr) by 2002:a0d:cc8b:0:b0:328:3005:37a0 with SMTP id o133-20020a0dcc8b000000b00328300537a0mr27540603ywd.470.1660111255729; Tue, 09 Aug 2022 23:00:55 -0700 (PDT) Date: Tue, 9 Aug 2022 23:00:32 -0700 In-Reply-To: <20220810060040.321697-1-saravanak@google.com> Message-Id: <20220810060040.321697-4-saravanak@google.com> Mime-Version: 1.0 References: <20220810060040.321697-1-saravanak@google.com> X-Mailer: git-send-email 2.37.1.559.g78731f0fdb-goog Subject: [PATCH v1 3/9] soc: renesas: Move away from using OF_POPULATED for fw_devlink From: Saravana Kannan To: Greg Kroah-Hartman , "Rafael J. Wysocki" , Linus Walleij , Bartosz Golaszewski , Rob Herring , Frank Rowand , Geert Uytterhoeven , Magnus Damm , Andy Shevchenko , Daniel Scally , Heikki Krogerus , Sakari Ailus , Len Brown Cc: Saravana Kannan , Abel Vesa , Alexander Stein , Tony Lindgren , Sudeep Holla , Geert Uytterhoeven , John Stultz , Doug Anderson , Guenter Roeck , kernel-team@android.com, linux-kernel@vger.kernel.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" X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- drivers/soc/renesas/rcar-sysc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soc/renesas/rcar-sysc.c b/drivers/soc/renesas/rcar-sysc.c index b0a80de34c98..03246ed4a79e 100644 --- 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); out_put: of_node_put(np); -- 2.37.1.559.g78731f0fdb-goog