Received: by 2002:a05:7412:f589:b0:e2:908c:2ebd with SMTP id eh9csp897356rdb; Wed, 1 Nov 2023 06:09:16 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHlT+m3M8GtuZDVZIXz9KurjYEi/Rk4muma4JJzh5rCyMIWRlxgEKQgaoZwGsrykxTo6cxU X-Received: by 2002:a05:6358:7e55:b0:169:a8f8:8d20 with SMTP id p21-20020a0563587e5500b00169a8f88d20mr950610rwm.0.1698844155817; Wed, 01 Nov 2023 06:09:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698844155; cv=none; d=google.com; s=arc-20160816; b=ybJNQVdjvX3IAHy+eRBiEl1W/uU20tkrDu1V7WAHCfxXenBXZjthEbTvUn3cmUjImp nQFt/12e0++AlWtqURr4yIJyHvgOcUQKaCexKDdUf3Ix5Rj8F1WAxwvWAkrYKsVWDwuk vAIZ5KAV2ERpSS2nCAptsWUxaemfeX+G6cTGHpHPDuZKW2EnGODPiaBEqn7pyLR/ffSC 0zkbxKoy61XjsbIhEdDyapc3pfphcCmqkbR1J786zKTm/B8QTRgK6Yq79uLc14L96RRp 5mWww+N3z5Qc8HWL4EY7OVmru93yvFN/glmEybWUeaPrdsKGMuPHJ4XyNO9gIoGLukOm Iz2Q== 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=Vz7ysH7cNtXbCT5BC7mDROjCTpfVrCFSPMZSO5EqKLA=; fh=DcRlAlTXiabO7X2myX7a/fNvfTzoM2ppDbJk2KYdc0c=; b=cc4yHmoRjhoj4P/dvozEu7UTobaHIOTGrWxmCzF9N12NH1ulW/VYnhdWV3VPutUH3J Z/3Yafv2/X3152xFKeOf9qqAtz+6B3jsagVW5GkGUMwgsBJkY+MNJUJLyih+qfMYhVcP scHczqQdcFNoNIiBQORlNIiO+/luWgusTHM5pSXCj77UPkmDO1OtQXi4vL+71ov5YpB1 r4xWgQ0GVmZ/uj0r3bwVdMoFqoYVpzMlZexruxHvyJ4R37OpjIkkmiHGZueUZtKt4I4X RrdNstwBM9G+5h0A+neZzn++/h0aDEZ/K2w/4teVevwwWfjo2GMFeqzGkUNoNG6Umrmw vRgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tjeqgvQK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id v10-20020a63f20a000000b005a9e4c3d350si2895132pgh.743.2023.11.01.06.09.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Nov 2023 06:09:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tjeqgvQK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 7B238801C011; Wed, 1 Nov 2023 06:09:11 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344018AbjKANJL (ORCPT + 99 others); Wed, 1 Nov 2023 09:09:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43646 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343771AbjKANJK (ORCPT ); Wed, 1 Nov 2023 09:09:10 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 425F8B7 for ; Wed, 1 Nov 2023 06:09:08 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9BA6AC433C8; Wed, 1 Nov 2023 13:09:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698844147; bh=Vz7ysH7cNtXbCT5BC7mDROjCTpfVrCFSPMZSO5EqKLA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=tjeqgvQK/oLxdfX5EEKWcza3KCJBMGLhXGTeqA8Ly6fm2cGjUi+UYRJHgMMZLxgmd 4U9j/nT60wdjDJtvHWxe1/UgpRobNH+rJuGmJAgwDy9QMeuAsS44mJwZLhx0f2oHN6 AlsrQOlDedpsGAh8kmCc+lhCBwqFOORxzimODwRrpWjDhLv8kK8/gaQWXquvgeyGtr PWKD0a5NHbQT4f+0ZYezPb5eAICeXNTVpLTXcblv8r+x984Yp7I4qPLkYRso9UwgKB 5C+o1+5KgHBTVN1Qttts6rfF8nIDMdfMSIv0NvS4IgIsR6HL95NtQ5UgyO8Ih5n9Ct KVf3okKzS/Vhw== Date: Wed, 1 Nov 2023 13:09:01 +0000 From: Mark Brown To: Manivannan Sadhasivam Cc: Javier Martinez Canillas , linux-kernel@vger.kernel.org, Jonathan Corbet , Liam Girdwood , "Paul E. McKenney" , "Rafael J. Wysocki" , Randy Dunlap , "Steven Rostedt (Google)" , Tejun Heo , linux-doc@vger.kernel.org Subject: Re: [PATCH] regulator: core: Add option to prevent disabling unused regulators Message-ID: References: <20231028102423.179400-1-javierm@redhat.com> <20231101045652.GA2897@thinkpad> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="NoDpa3jvoxiVIWee" Content-Disposition: inline In-Reply-To: <20231101045652.GA2897@thinkpad> X-Cookie: P-K4 X-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 01 Nov 2023 06:09:11 -0700 (PDT) --NoDpa3jvoxiVIWee Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Nov 01, 2023 at 10:26:52AM +0530, Manivannan Sadhasivam wrote: > On the other note, I'm wondering if we could use sync_state() for handling the > regulator_init_complete() work. This would ensure that the regulators are only > disabled when all the consumers are probed. That assumes that everything defined in the DT both has a driver and has the driver available for the currently running kernel neither of which is a good assumption. --NoDpa3jvoxiVIWee Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmVCTewACgkQJNaLcl1U h9DA+Af/ehW2mCrAxO2tgVL9SyRKQuTI6KLs0SUMuRpUZ9hZNCbwHAVnWktnP5K6 DlYJukivxKx3vTd3FgRoUMdEiX1YblU9yKgJP3SQk0492iGZGr+wcwXEpZ4+DJ/G wEq55hS3KPbe1rWMIAu4yJx+mdc6sYl4ypckMyxy3CLUkCD8WSIdY+lLm1uVxAT/ c/cXcRYtrixUX//OtRcpWK1WeXNG4sudiobU6ZbHTFQe+11+pM7dd9l358kUEWhJ V98Cr0NW4foqYSM6PbiLTTpMBj8B1gr6MPtLvB5QbhVs9OyNzapMNZ1VD99JCNCr Gf43q9CWYaL9QWzfDq2wnujt66+NPw== =pOwA -----END PGP SIGNATURE----- --NoDpa3jvoxiVIWee--