Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp961994pxb; Wed, 3 Mar 2021 22:39:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJxKqCElqax/PJBxsdjEkxCtw4c/Lej5hasHCI9Mq9liziAPLAl9dWvUQoLjQhTdGDXcnlU5 X-Received: by 2002:a05:6402:350f:: with SMTP id b15mr2729774edd.6.1614839981714; Wed, 03 Mar 2021 22:39:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614839981; cv=none; d=google.com; s=arc-20160816; b=n8x2osPPrnch3Ct+5V67/5QSNSigqGVeW7IOsQE3hxztdCduQ29+UP61MK264Uvg2q uPITA5WWzAx7FxojSjn8vLSkU4E3PnSLrJQQEHCWLYaLa8A53FbA1IpdiorsXvKEOcvd EC4unbj56la77KvCFNpQvTlHdX/yewwXpd1CczOi3uMQ0HTYjHgW2+jT8pl7R+UVbn5b 1GgZTDb/f8zLbGCK/K5ggL20AlW9noWYs1tHv75i5jaV/6gwyDXz8sGAUghRHGXvAFXR HWlwisqidCwzhiTMmJpJqTEbU90howdl3Qg/ExdhZVUpkZlsm4YQXKE7ZmwRD6D6I7ok /jgw== 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:dkim-signature; bh=9QdtjIe0T2eitTCSuJ7LHSWk38X1zqrtAVxPMfKXz/0=; b=YuuNs2Po0bOJgvwWV9ByJRFh0OvIlFCwijbZk1Jlm+G1KLNLenLjm6pa82lFvl1R1P 7Xo+AL+I6ZNN/HaIloUT9U44t7imRKBW9je7+HeH/vvJpaoj1dBLyS4jSHKO4PBEzR6a oNYsryTbEoVVq0CVGnKKgCKapEN/Swsr/kYEbkKL6VavRvABVqtxh0wD7VJho6JAZw5r NyVwq55AvKops2QjB62T40vxkvG+0f8fGaLkpbHYhEe2JrGBDXUQ0W+iXV8fDiwJ/MD4 7vj3SrWzvCmIE3lX1KkJKL/3HNKiWSQx7/+VQGgRkShuCkR5CFkk3RPwi8dpueN1+p+i R5qg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=f1Pf6H+S; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q3si17060936ejb.681.2021.03.03.22.39.19; Wed, 03 Mar 2021 22:39:41 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=f1Pf6H+S; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1444277AbhCBU1R (ORCPT + 99 others); Tue, 2 Mar 2021 15:27:17 -0500 Received: from mail.kernel.org ([198.145.29.99]:54678 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349854AbhCBRhJ (ORCPT ); Tue, 2 Mar 2021 12:37:09 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id D8C7364F32; Tue, 2 Mar 2021 17:25:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1614705943; bh=wzxX6fB8ox2DNpZZ8LhGeG/FrKDK2EebFNNFbxqx7JM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=f1Pf6H+SbYeaOIFSpQ3JOAeTr6Dw84eJClIrlFPmfVDOpTWYy0yEAZTcnzidNGC2l pGyIdR0imIsR7LHvGcERf65jjYy4s1cqkFR4kreAaK1YD807JajOAkxZYhQdSeTnyz ShYqvpjXxT+IP5QBlY4aw2tPgLkXjEFMxfscxvC7Uc+VvDfsTc2cmnQPZ75I5l7ceZ 76EwYvMMbRScED51f1jE4G+Nmx5kO8uYzSv1xOz/NFwNlx29LnhicXpe9NaR/054Dp nNFA17Q9A3GqtYGb5vIBTk3+yojRm3iIqLchlTqApSnIBeIu5yghp8KzUNgflhe80o LQeQkz44p11Ew== Received: by earth.universe (Postfix, from userid 1000) id A4ABB3C0C96; Tue, 2 Mar 2021 18:25:40 +0100 (CET) Date: Tue, 2 Mar 2021 18:25:40 +0100 From: Sebastian Reichel To: Geert Uytterhoeven Cc: Magnus Damm , Saravana Kannan , Linux-Renesas , Linux ARM , Linux PM list , Linux Kernel Mailing List Subject: Re: [PATCH] soc: renesas: rmobile-sysc: Set OF_POPULATED and absorb reset handling Message-ID: <20210302172540.suq6m7cbulorp4at@earth.universe> References: <20210205133319.1921108-1-geert+renesas@glider.be> <20210302154406.n4d6euiruwan4pm5@earth.universe> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="4kn6yoahxuaazce6" Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --4kn6yoahxuaazce6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Geert, On Tue, Mar 02, 2021 at 05:18:21PM +0100, Geert Uytterhoeven wrote: > Hi Sebastian, >=20 > On Tue, Mar 2, 2021 at 4:44 PM Sebastian Reichel wrote: > > On Fri, Feb 05, 2021 at 02:33:19PM +0100, Geert Uytterhoeven wrote: > > > Currently, there are two drivers binding to the R-Mobile System > > > Controller (SYSC): > > > - The rmobile-sysc driver registers PM domains from a core_initcall= (), > > > and does not use a platform driver, > > > - The rmobile-reset driver registers a reset handler, and does use a > > > platform driver. > > > > > > As fw_devlink only considers devices, it does not know that the > > > rmobile-sysc driver is ready. Hence if fw_devlink is enabled, probing > > > of on-chip devices that are part of the SYSC PM domain is deferred un= til > > > the optional rmobile-reset has been bound, which may happen too late > > > (for e.g. the system timer on SoCs lacking an ARM architectured or > > > global timer), or not at all, leading to complete system boot failure= s. > > > > > > Fix this by: > > > 1. 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, making consumer devices probe again. > > > 2. Move reset handling from its own driver into the rmobile-sysc > > > driver. > > > This is needed because setting OF_POPULATED prevents the > > > rmobile-reset driver from binding against the same device. > > > > > > Signed-off-by: Geert Uytterhoeven > > > --- > > > To be queued in renesas-devel for v5.13. > > > > Acked-by: Sebastian Reichel >=20 > In the meantime, this has method been abandoned, and this patch was > superseded by "[PATCH v2] soc: renesas: rmobile-sysc: Mark fwnode when > PM domain is added" > https://lore.kernel.org/linux-arm-kernel/20210216123958.3180014-1-geert+r= enesas@glider.be/ Ah I remember seeing that, wondering why I am being CC'd and ignoring it :) Thanks for the pointer, -- Sebastian --4kn6yoahxuaazce6 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEE72YNB0Y/i3JqeVQT2O7X88g7+poFAmA+dQcACgkQ2O7X88g7 +pqc/w//W5vDfGs22TY9mzvMDs2b5bphnJBFMWzL7KQhHEsNXGmHGPI+nYg6N+GE gm5J0W0AwhVRmO1EY2Qcd+ls79eCnd2tVer7JWHwKXiGMpGq5qd8KjL8EilYluUG 62Rkc5mmECtq2qPqhqLblmdedJydoDbmENw3LlS6virxWx0MNSxe4ErF/BkNliqu sNJ1Qi2VS8e5rBAZDEXeg/ihZGaf1kWH41gnags1R+0QY1buu/MZz7I4Y1gzO9P9 oLCKxkcppNqfWwYgmehExokEd+46fYclpQD3xeoG9kez80dnb2oiTh305ZmCMedv XtjcDyNfC3X+QqA69lJtPttfzbzOGFY81bph3suQAwZaNCsdocLjSE9JrONMmJCB y5g8iKBJbe0tzqo7t2V8ZeZyjGg7OyyxKInuiuhhPl3lrTfqtdVAGM3JorUJBU+R FYeJ6fgicIuBwt3zXxTJAlzAG3pFm7GEkeB93+d1342Nex4Pbzgizf0EHrXJUl/7 b5O2O3/staEjsOKUMUDzNcvh1rkYKNSIQkMe/ohQB9JNOG8fSUXDDFPBFU0d9ap0 4Fd+/QKJbtXWITKvL36JmpAFsXDhmnax580sFAdpALzTLftenYOldFy1aT4fksCD Nt9Wz0RQQy6u0t/XfjRJQGS5lZeIkVqOnfD0/WznHZeA2W66v8M= =8pjj -----END PGP SIGNATURE----- --4kn6yoahxuaazce6--