Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7526236rwb; Tue, 6 Dec 2022 06:54:38 -0800 (PST) X-Google-Smtp-Source: AA0mqf5XIUhq+g6Nrpl7fwRQ/29vKgPrO0dyWf7HLP+CRl0A92Gr/L0FUxE8tLiL6qFTGXFJyXg0 X-Received: by 2002:a05:6a00:4509:b0:562:641b:c1b2 with SMTP id cw9-20020a056a00450900b00562641bc1b2mr74472377pfb.8.1670338478523; Tue, 06 Dec 2022 06:54:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670338478; cv=none; d=google.com; s=arc-20160816; b=dOuofbtfKerm82RBK4GRrt4EdHl3rzQs8hPeBCRFJvyi4tsgR2eaEpKp7djnj8Oe95 rdyfL1e/1ScsT1QuX9A1vnEHSpyxFPzb0TuSImJ3t+U03WAmAbQlBjGO2gmUGFiOwhPo gciDDpdoJ5gJEAlC+mcbjm+42N7353IWd6Seq85DnaT0KtJ1Iw7WP3RSDzktls6CGmX+ siLAz6czbToTz8AfZ8c24eVekoOwT8/Cwnwg+9bccAgpfoVo270wJCyNbWNhNScgvDJB 2PhPdFJLHdRfSLPYdH6B1nB2CTB+78QUbChTM8l/+ib4uDtYBWp7/i3xyY9U+7/rn6JT ZOvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:subject:to:from:date :references:in-reply-to:message-id:mime-version:user-agent :feedback-id:dkim-signature:dkim-signature; bh=KnIFi4lsGwwhq9ip/nuZpXNlyToP5kN9dlCu/kVKYak=; b=bTqjZtgAGSwrdh8yk8yb9rbOI196tJdMJh9qA+gFwAYHSoELvGcDHLZDJtcKoYTgxo Ehd1mrjUH/EOgnKd0v8+HHc+SJg0mDgPgJcPlsJea0xRtTubkKFcFkRiR7MHboXFdSSY dm5e+9/fNEVTJqBgwCF1SZZNZC/hruxt3GBFZgKAuomww66b4eUEba08V7YSgl7lwPao ob4haeI465ntUWX/ChlGG2x8U/Y3mHdOGpSoGA+pCQ28xTXMkU3WnvOGWbTAfG7RNlAE J2+IVSkCGF9/9PeSiPdZX66wR6bvYoq2/OSSIMV0A1sNYGWEz//Y4yoQKoDnopRSBO0G Nmiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm1 header.b=PSDybsSP; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b="g/LdCgYW"; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j184-20020a6380c1000000b00478ca0483aesi4084631pgd.170.2022.12.06.06.54.27; Tue, 06 Dec 2022 06:54:38 -0800 (PST) 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=@arndb.de header.s=fm1 header.b=PSDybsSP; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b="g/LdCgYW"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234810AbiLFOSz (ORCPT + 79 others); Tue, 6 Dec 2022 09:18:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60812 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231183AbiLFOSx (ORCPT ); Tue, 6 Dec 2022 09:18:53 -0500 Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 51F1ABB2; Tue, 6 Dec 2022 06:18:47 -0800 (PST) Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 34E515C019C; Tue, 6 Dec 2022 09:18:45 -0500 (EST) Received: from imap51 ([10.202.2.101]) by compute6.internal (MEProxy); Tue, 06 Dec 2022 09:18:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm1; t=1670336325; x= 1670422725; bh=KnIFi4lsGwwhq9ip/nuZpXNlyToP5kN9dlCu/kVKYak=; b=P SDybsSPkDfYcnbP31mii6mSNVDtJw9ZKY7wtpeIgM3a3XWwS6c1Nue6K+1e2UXbS vJcRmB+EKHm/cAQ1qcIRaRsiaM9Oc8n5h1vOiUeSWsIcwr9+9Eq8vZUg1vTta40D h4/nHX1m0V1PJNccvJqE8wO0gRcTKiaseHbR6Sb/ZtXqwO3dY00KbOMKhnOfY/GZ ADGwTzdiFXcB4qgwRwFsLMm4YudZkX+NmN45EdPF7kDsKqnQRODzAXeAOZvzFWok JiuMD/V+3EyAVMLlN5QT8VQbuaH+xCeMTr83+6c0idij5UV5j6VhtF/izXnoHCVi fk9KgZDOSmnaPBdXwa/AQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:date:feedback-id:feedback-id:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; t=1670336325; x=1670422725; bh=K nIFi4lsGwwhq9ip/nuZpXNlyToP5kN9dlCu/kVKYak=; b=g/LdCgYWpF0N4lUBy 4cUKSRjDSGnndq0gqVOF5CzuJvDBvIQb4iL0UWVbF/NFiIPWBsMiPnq4uCL0f3PJ yrFBZWkq0wUq6tBw4O+rpjamaDaCvJr0UoinUnFbYqcOME5qLC47IDgTICO9iysZ OEx6C+NpIJlmMjvFS5FKvZCCuvqo0UcNRfHe427EDCw5A2dFfhem4Vc6COPrQNGv sWoEObd8B007SJSmrsv36I6AKz10Ie4vbyCbHZBLYMpKUEMBSpDYFZnPRWSZqbx0 2jXawTDTv3905Cf9tMsSE/Xv160Z8sJ1izG2U6LZU73GcjR9LQJa6JOC01ZbWS2O hQG7A== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrudeigdeivdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvufgtgfesthhqredtreerjeenucfhrhhomhepfdetrhhn ugcuuegvrhhgmhgrnhhnfdcuoegrrhhnugesrghrnhgusgdruggvqeenucggtffrrghtth gvrhhnpeejgefhuedtjeejheduveegheevudffjeekhfevfefgtedtheegieeludefuedv hfenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrrh hnugesrghrnhgusgdruggv X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 9A95BB60086; Tue, 6 Dec 2022 09:18:44 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.7.0-alpha0-1115-g8b801eadce-fm-20221102.001-g8b801ead Mime-Version: 1.0 Message-Id: In-Reply-To: References: <20221206073916.1606125-1-jk@codeconstruct.com.au> <20221206073916.1606125-3-jk@codeconstruct.com.au> Date: Tue, 06 Dec 2022 15:18:23 +0100 From: "Arnd Bergmann" To: "Philipp Zabel" , "Jeremy Kerr" , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, "Lee Jones" , "Rob Herring" , "Krzysztof Kozlowski" Subject: Re: [RFC PATCH 2/2] mfd: syscon: allow reset control for syscon devices Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS autolearn=ham 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 On Tue, Dec 6, 2022, at 10:25, Philipp Zabel wrote: > On Di, 2022-12-06 at 09:41 +0100, Arnd Bergmann wrote: >> Philipp, what is the earliest point at which >> reset_controller_register() can be called? Is that >> possible before postcore_initcall() or driver_register()? > > reset_controller_register() only initializes a few fields in the passed > rcdev structure and adds it to a static list under a static mutex, so > there's not much of a limit. Ok, in that case I think we should at least leave the option of doing the reset from an early syscon as well. > However, reset controllers that choose to register early without > creating a platform device may run into issues with devlink=C2=A0inhib= iting > reset consumers' probe [1]. Right. I think the is generally a problem of "early" code, so device drivers should avoid doing this if at all possible, but at the same time it makes sense for infrastructure to tolerate drivers doing it. Arnd