Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp3088212rwi; Tue, 1 Nov 2022 15:57:35 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7LGeJLJonq2nIBmpcG70Qu9cHj5Ql3H7hbD/EyZg1jsSrfIALdU7tHednw250f/KI4x26n X-Received: by 2002:a50:fc03:0:b0:461:5d8d:5811 with SMTP id i3-20020a50fc03000000b004615d8d5811mr21526397edr.351.1667343455243; Tue, 01 Nov 2022 15:57:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667343455; cv=none; d=google.com; s=arc-20160816; b=0bg8jPtquA7c6ziLFP0WbO0Vc93fIJm2yGT9/Y8Zi4lBvBeGmuHcg2y85+9phY+mYM u6Cgd3BVHdFxl7GxD1UL6Xgo54tQeRYPSNJFjmAefe+OGnhcbyf6BGPtlTUQ3dBk7UPm lO16shKdxvFXr+Zoo5IK7VEZI0lE0jSxhjAb/P1RwL0/ZKe29csZfCQN6yWJnl7iapjA rnj0J2CZDhEYQcTsXGNAqcMHGovC8UJtJ/mdzwyaJmiEUS/k+6Le9VGVIaikAouJtBs1 RNPkZ2GDBusjUbudpcq/F1ajaBalhx2HuyKGoSTuZGfKttA0uNy53brHK5pUKgMDaGUA Emlw== 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=ra1DxUtw8duk3xgpznu2G+LVRe7hBZGi32jB2ilzSnQ=; b=G0CWJrNTS4MEZfNxCWNfSfW6F3SqbqRw7BWD3qQ4X+gb/DC/SLo+1+P2XbQy0H9fvA vADBxNYufBMIbmL6qBXMg0rzf28fPFxsoDM8Ksi3Tpn+VRstysCs5k1anfwa9RvOxOjQ 04TNZ0AtZ0Akb5h7W7/BWs8Gto7X6Z8UVI2J7z/BS3i4DpWz54/CiJgdxjXdsQAiY0fg icbn8UT3RiMRK1o007iDt1uXjYnJ7WgfebI3jai28il6iJCHonbcVYXFD5oVAvzXpWbR o0tqfBr1hgHsjgbFB+biOZz/dwX0hkbTuNqrGgr3WmKU4+OW8lJF8CUHFtoIGlvwVja0 hL5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=iXQLCb7y; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hp41-20020a1709073e2900b00782e437a368si12817443ejc.160.2022.11.01.15.57.11; Tue, 01 Nov 2022 15:57:35 -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=iXQLCb7y; 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 S230448AbiKAWXF (ORCPT + 96 others); Tue, 1 Nov 2022 18:23:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58030 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230311AbiKAWW4 (ORCPT ); Tue, 1 Nov 2022 18:22:56 -0400 Received: from mail-pl1-x630.google.com (mail-pl1-x630.google.com [IPv6:2607:f8b0:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 856B81A805 for ; Tue, 1 Nov 2022 15:22:55 -0700 (PDT) Received: by mail-pl1-x630.google.com with SMTP id p21so11003866plr.7 for ; Tue, 01 Nov 2022 15:22:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; 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=ra1DxUtw8duk3xgpznu2G+LVRe7hBZGi32jB2ilzSnQ=; b=iXQLCb7yS8xX4ME+5QdaSAHIGdXvLXPpDImW60Izftv/1EOP8FQUyGdvJSgy2CrcVA NDeh8roIFXnclEFuowwIJL6z1Gm7axBhj/DrnaQS+bUhWW+FUPndhk14geAqc9m4g0JE Eh2OQwEOKTVGH6lTQBJJFQFexxmdmHHHIgyi4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=ra1DxUtw8duk3xgpznu2G+LVRe7hBZGi32jB2ilzSnQ=; b=g1s4tQIBTmS3CzhBRE83FkGAnhyk17p3f/7V6+sPm4fLLW9fmHh0J7YGJocb0H3/3A ZPwORF9LXwlBG09U4YM7Q8BX6LWCyg2KE8K/cw1Ip1BzrI4nwY3r1XtkgnOutI1WyGAD mYPcjyFJ30eC5a8sH6FhlgzfANuxilbgvLaS6zCkDRo+rNf6w1gzyRKtboGWQG5Q8HMI vYF8ucnG/wlH/3TCF34zcI3vexCf4JYr+uIIbEiB9EjCV0afeOjJEe8AaNc+6/08qsgj aNMtUO61E9e03KheUBDqcTdeDRFp2txixWydGTyQWvaypRWuKJrPbTy/qr/+obyua85p i1xQ== X-Gm-Message-State: ACrzQf0/i/gX9NqxpdyIOufN9KAIzTCWSDCxTVJg6vGS1fRvWdgbC46m OjREU+OcOzhmAsEhtLNeeQ1rNQ== X-Received: by 2002:a17:902:ed8e:b0:187:27b3:74e5 with SMTP id e14-20020a170902ed8e00b0018727b374e5mr10525835plj.90.1667341375079; Tue, 01 Nov 2022 15:22:55 -0700 (PDT) Received: from localhost ([2620:15c:9d:2:9c5f:7c8e:b8a2:3495]) by smtp.gmail.com with UTF8SMTPSA id y22-20020aa79af6000000b0056be1581126sm7261255pfp.143.2022.11.01.15.22.54 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 01 Nov 2022 15:22:54 -0700 (PDT) From: Brian Norris To: Benson Leung , Guenter Roeck Cc: chrome-platform@lists.linux.dev, linux-kernel@vger.kernel.org, Brian Norris Subject: [PATCH v2 4/5] platform/chrome: cros_ec_lightbar: Set PROBE_PREFER_ASYNCHRONOUS Date: Tue, 1 Nov 2022 15:22:09 -0700 Message-Id: <20221101152132.v2.4.I565598102e0bfb03bdf8c090d3bfdf954d026bc5@changeid> X-Mailer: git-send-email 2.38.1.273.g43a17bfeac-goog In-Reply-To: <20221101152132.v2.1.I0728421299079b104710c202d5d7095b2674fd8c@changeid> References: <20221101152132.v2.1.I0728421299079b104710c202d5d7095b2674fd8c@changeid> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.2 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 This driver takes on the order of 15ms to start on some systems. Even on systems where there is no lightbar support, it can take a few milliseconds just to probe the EC for support. It shouldn't have many cross-device dependencies to race with, nor racy access to shared state with other drivers, so this should be a relatively low risk change. This driver was pinpointed as part of a survey of top slowest initcalls (i.e., are built in, and probing synchronously) on a lab of ChromeOS systems. Signed-off-by: Brian Norris --- (no changes since v1) drivers/platform/chrome/cros_ec_lightbar.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/platform/chrome/cros_ec_lightbar.c b/drivers/platform/chrome/cros_ec_lightbar.c index 469dfc7a4a03..ff4d619cf924 100644 --- a/drivers/platform/chrome/cros_ec_lightbar.c +++ b/drivers/platform/chrome/cros_ec_lightbar.c @@ -601,6 +601,7 @@ static struct platform_driver cros_ec_lightbar_driver = { .driver = { .name = DRV_NAME, .pm = &cros_ec_lightbar_pm_ops, + .probe_type = PROBE_PREFER_ASYNCHRONOUS, }, .probe = cros_ec_lightbar_probe, .remove = cros_ec_lightbar_remove, -- 2.38.1.273.g43a17bfeac-goog