Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp617731pxb; Wed, 20 Jan 2021 16:11:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJykwhkXBLE+0dWSxxMUfU6T13fl43qsOgHCTqj55cYcsEL9Rwzg1RbR6msPcLcL4Qzkgtsr X-Received: by 2002:a50:998f:: with SMTP id m15mr9244215edb.342.1611187912867; Wed, 20 Jan 2021 16:11:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611187912; cv=none; d=google.com; s=arc-20160816; b=sTCvzqnrKjnriKAdDZgyfB58DAAu+1WyGkxRPFTc3BMLU4qmM9wqfMf7ZyI6AH8H5E 7/xUfe8IwWdLoSuGSMCZw/xT6PvSjHs5/Mq61sTQKr8BILrbJR+QkRxBvBMIrX2aWD6C X7lNXIZJNG40aO8x7+Ddu3mW07alSP1VLhttT1cYR4G3zrpGUoxK7Wjqjp8nOoji/ut+ ExXd18yQ2QY38cvev20b9q+wMjIAELf3mzDrE09d2ZJqzr+aHPi/oP/tGh4zWeGxVjU/ oxwKrDQl4eaqZC2WF2ti8DGla525iH006PhRddV6GPGK6HakYZlTzfhte7Gp3uq9U7Eg E8aQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=Pv6MV/+2rA/tlle3wKik1FLZd5JIX+KvLfElfOpEGN8=; b=Jw1hREMXACICQQ9xCKIXnVSGs2h9f/u/D//ilpY0hcA+zoa7W+zc23urlhNcpRFuS4 se9uXq/FpFnZe4uoIjtFelBU8wbuRy4jP0qMGXej5xgOnvOeYp0NCt/4DFff33S/q6XF 3aVQN7owTUK8hqTfHPXMsbUHgRRgrc//amNhOj30l8bPHO3xVDVu84WS/TKAkpKHq2Xy ntFZ12mix867GRF9zF6lAz6GTWm+vxXXCdbLbOWGHRTgllYSq7R/2GIbQhS1BJ3+vQtM 8mEXDRiEakG2ijW+hmtKWGd8C/GtKTrjbChWWfF1zTQzGmJwf6I3/kCBpQVjK38uWNyl BAIw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e18si1141700ejj.130.2021.01.20.16.11.12; Wed, 20 Jan 2021 16:11:52 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390594AbhATOcF (ORCPT + 99 others); Wed, 20 Jan 2021 09:32:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52102 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390516AbhATOZX (ORCPT ); Wed, 20 Jan 2021 09:25:23 -0500 Received: from xavier.telenet-ops.be (xavier.telenet-ops.be [IPv6:2a02:1800:120:4::f00:14]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B1008C0613D3 for ; Wed, 20 Jan 2021 06:23:40 -0800 (PST) Received: from ramsan.of.borg ([84.195.186.194]) by xavier.telenet-ops.be with bizsmtp id K2PS2400g4C55Sk012PSaA; Wed, 20 Jan 2021 15:23:37 +0100 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1l2EOL-005BZX-He; Wed, 20 Jan 2021 15:23:25 +0100 Received: from geert by rox.of.borg with local (Exim 4.93) (envelope-from ) id 1l2EOL-009FIO-3H; Wed, 20 Jan 2021 15:23:25 +0100 From: Geert Uytterhoeven To: Saravana Kannan , Greg Kroah-Hartman , "Rafael J . Wysocki" Cc: Marc Zyngier , Kevin Hilman , Marek Szyprowski , Yoshihiro Shimoda , linux-renesas-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH/RFC] soc: renesas: rcar-sysc: Mark device node OF_POPULATED after init Date: Wed, 20 Jan 2021 15:23:23 +0100 Message-Id: <20210120142323.2203705-1-geert+renesas@glider.be> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The R-Car System Controller (SYSC) driver registers PM domains from an early_initcall(). It does not use a platform driver, as secondary CPU startup on R-Car H1 needs to control the CPU power domains, before initialization of the driver framework. As fw_devlink only considers platform devices, it does not know that the System Controller is ready. Hence probing of on-chip devices that are part of the SYSC PM domain fail: probe deferral - supplier e6180000.system-controller not ready Fix this by setting the OF_POPULATED flag for the SYSC device node after successful initialization. This will make of_link_to_phandle() ignore the SYSC device node as a dependency, and consumer devices will be probed again. Fixes: e590474768f1cc04 ("driver core: Set fw_devlink=on by default") Signed-off-by: Geert Uytterhoeven --- drivers/soc/renesas/rcar-sysc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/soc/renesas/rcar-sysc.c b/drivers/soc/renesas/rcar-sysc.c index 9b235fc900273405..a00bb098e1fe7488 100644 --- a/drivers/soc/renesas/rcar-sysc.c +++ b/drivers/soc/renesas/rcar-sysc.c @@ -439,6 +439,8 @@ 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); out_put: of_node_put(np); -- 2.25.1