From patchwork Mon Mar 13 18:18:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Doug Anderson X-Patchwork-Id: 69006 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp1338675wrd; Mon, 13 Mar 2023 11:26:25 -0700 (PDT) X-Google-Smtp-Source: AK7set+vPexY/cLrhE4QzS8mIhub1Vkm1SuSG7kMtcHONuHCJUp1t79mpRuvB7822MPq7MyAy4FM X-Received: by 2002:a05:6a20:431e:b0:cc:9b29:f617 with SMTP id h30-20020a056a20431e00b000cc9b29f617mr36957196pzk.0.1678731985634; Mon, 13 Mar 2023 11:26:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1678731985; cv=none; d=google.com; s=arc-20160816; b=mBywh+i3hyW1++5cBl66qptNhR9zXKRa69AWuc2b/BqreEyPg2YTAfp5rtWYEWmxiO Be2XgqvFAdjZDymPWvdf686XeojMIgez8AIb0EQSq0MDsvVtq5E3fK02fCizcvAvlXWH Xx6Wwoxa0ZXHOqVUPr6L6WGN/y1FQhjDTzU1vxx1pEse1jVIqXM07P8U4t55aOX0S1u/ UbQW+yXWuqNjNPckDY+pgo2m1bXiEPSe/hwWUfdNQXSSf8C/b0oVWvcbOAlCfcHs4ZPN jzxXl7ez26JBAHbexBmjvkYlvfTSI/RV6TdlOS8hB/6vmlZNvaYRyZTuCVXIjTrYjvOD 1XjQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=XstmFM2GshtLwvoAEIpsc9WtbOo21zJeuCi3J74UKuM=; b=MXcJH1qEvpZF4tZkLe9Y7Dq7NnvbhfgFwgGbiAV2ety009s/ZV4Y9HezKQ89ITXOhs Xwarr4M+VRd+jWX4Cy06rSpf18rIil+YalFjapAExWLxX+zaA8tVU7UHA5Yt1ZoQdhea iIdU3dCt3R0mFZ62SxCM8NijYO7fvYbDV4lfxLdnUg4vGcxdQ2TitnOuVM4NLICX1G1i 8jdA1XkcQfW/UQE33Stkybc/bppyBhhZrKuBLckoHbzyOV1RW2+pPV7BvVFJbVpZzSbe br9EEl/J8MvDOuuGtS9tAiXthLRcRB60STS6dVaLa3tOMu1XTnmDGpa+6xevKUaiYGil 2mhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=AXHqUvDD; 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=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r12-20020aa7962c000000b0058bc338c9b2si52980pfg.372.2023.03.13.11.26.09; Mon, 13 Mar 2023 11:26:25 -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=@chromium.org header.s=google header.b=AXHqUvDD; 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=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230081AbjCMSTU (ORCPT + 99 others); Mon, 13 Mar 2023 14:19:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37934 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230014AbjCMSTI (ORCPT ); Mon, 13 Mar 2023 14:19:08 -0400 Received: from mail-pf1-x436.google.com (mail-pf1-x436.google.com [IPv6:2607:f8b0:4864:20::436]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E832C6A052 for ; Mon, 13 Mar 2023 11:19:05 -0700 (PDT) Received: by mail-pf1-x436.google.com with SMTP id bd34so8216264pfb.3 for ; Mon, 13 Mar 2023 11:19:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1678731545; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=XstmFM2GshtLwvoAEIpsc9WtbOo21zJeuCi3J74UKuM=; b=AXHqUvDDmZPGCCP5cgSLitbVM+kqfQ7XsQEqKZ/cR7dPzDSiBHuZVBwGz0SqcN7oxs DBrJEwOiLSkhmgGZjRWmYnJNgtT5wofMgGiNBCn6tT4m+bsc3Wr3rS3hc3NMX5NvAenf qY8IA9nPi1oR6/dNzSBx9vfCEgoC1XFtoyiCI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678731545; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=XstmFM2GshtLwvoAEIpsc9WtbOo21zJeuCi3J74UKuM=; b=5eicbU2+EH/P3D2qnn26LWeQWK8CRp1HEYE2Zd5nhZoIAv0AhIRrIZu0bAjdG5LmtQ mKeaZtaiXoXIX0QCasMArr8CbBzNq0orhCo0V+dMj+wG9j2kRkUyq9Bjw4rni14fqpXV VufhMFdseKFiAMMoXYdxgEvBKaqfRzwf80ROyMFEVVfYFfPZ1zp+tB1WR0KAVbGrCNEy OMRnH3qwMPUHV/m/CQapwg1Xp9ew3d3X/EckNejKBlCHIUrr/ah1bDe9hFjItQWJOGaW omvFrQb/K/wUw8YGIhtHR6DMNdvsmRjjfZVoEIKkVd2I33bBtNQw1+eXRSz+/Agdsxb/ 1j1g== X-Gm-Message-State: AO0yUKXi2tIZjExVZgCdXkaWTTxXUL9Yf0pblD7g7IN/3Pah2KdVZbP9 Nc12o47qhv64rOj4xpGJgU4acQ== X-Received: by 2002:aa7:9f44:0:b0:622:844e:80a8 with SMTP id h4-20020aa79f44000000b00622844e80a8mr5911107pfr.26.1678731545207; Mon, 13 Mar 2023 11:19:05 -0700 (PDT) Received: from tictac2.mtv.corp.google.com ([2620:15c:9d:2:79c6:a848:199d:3491]) by smtp.gmail.com with ESMTPSA id a11-20020aa780cb000000b005ac419804d3sm25169pfn.186.2023.03.13.11.19.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Mar 2023 11:19:04 -0700 (PDT) From: Douglas Anderson To: Mark Brown Cc: mka@chromium.org, christian@kohlschutter.com, Douglas Anderson , Liam Girdwood , linux-kernel@vger.kernel.org Subject: [PATCH 2/2] regulator: fixed: Set PROBE_PREFER_ASYNCHRONOUS Date: Mon, 13 Mar 2023 11:18:20 -0700 Message-Id: <20230313111806.2.Iee214b2dd184cb19197db8f97fad7e4adca273be@changeid> X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog In-Reply-To: <20230313181820.2482385-1-dianders@chromium.org> References: <20230313181820.2482385-1-dianders@chromium.org> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1760278070546899367?= X-GMAIL-MSGID: =?utf-8?q?1760278070546899367?= As of commit 218320fec294 ("regulator: core: Fix off-on-delay-us for always-on/boot-on regulators"), we now might have a big delay during probe of fixed regulators. That can have a significant boot speed impact. Let's mitigate this by preferring async probe for fixed regulators. The regulator framework itself has no issues with regulators probing in an asynchronous way. The fixed regulator driver is fairly straightforward and also has no issues. Signed-off-by: Douglas Anderson --- drivers/regulator/fixed.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/regulator/fixed.c b/drivers/regulator/fixed.c index 2a9867abba20..1927dc2d4cf8 100644 --- a/drivers/regulator/fixed.c +++ b/drivers/regulator/fixed.c @@ -334,6 +334,7 @@ static struct platform_driver regulator_fixed_voltage_driver = { .probe = reg_fixed_voltage_probe, .driver = { .name = "reg-fixed-voltage", + .probe_type = PROBE_PREFER_ASYNCHRONOUS, .of_match_table = of_match_ptr(fixed_of_match), }, };