From patchwork Tue Nov 1 22:22:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brian Norris X-Patchwork-Id: 13926 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp3246167wru; Tue, 1 Nov 2022 15:31:56 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6dYh2LdgA+CnC/r4GgpWT1YSzgHz703tpPZX8Cq/b5dkr6x+Y662bp6Y8Q/UTvRMfC/eeJ X-Received: by 2002:a17:906:9bc8:b0:7ad:7e6a:50ac with SMTP id de8-20020a1709069bc800b007ad7e6a50acmr21163434ejc.66.1667341916438; Tue, 01 Nov 2022 15:31:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667341916; cv=none; d=google.com; s=arc-20160816; b=xJSKRKsIDRZ6iPFi+JOGZI6CK1FmnANZyE88QlBLhcf+hRhVedt/y8li8XjQfSQNfy ptTDNlwuJPB5AEGx5X1yPpuX4TpGo4KWmiiurw8Dl6ezAEt5IvNPNNdC2tXRVPkORtpN pviJu6R3ky/u6MLwWuAr4X/o/p9ZovP5AprPkruPSYvK9ndSb7VxVVC4CPGl63RPy9ks hY3CWDSvbWbrJwdH0mO+124W38+TevlKexNfomXz1w+NbxdyHjXu68rpE0V5raex3bqn UeeZOMU4ZNtoSCc1fjzyYF7GlaR7fP+mfeYL1/J7wA2cV9YwePKJubjuOV1XoRHseO8h /c0w== 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=uhDBAUhO5scPlfZQJJkosTaLVirDeVVGs54DNXhKQpg=; b=iANcYouyjy2rNBdpjjYRZ0h476jnCkkE8h8YQy2wesbtCica77wnYFItGc0rJSEe5v jnotnNyWWxQIrSGAMCliW0C9pG5sQemnjbiB8/JYLdyv/XPLXlq6C921r3J54lBok7aM c5136lPikYPB7d0uuLrSSMyqeKxzmJzpjWh4yQOFWJSczpVXO7YdCrMubpGO7b4SymdK S6S44cN3T4kTEZZ5KxWJ9vlAo6yZa0mAUeHP5bMz/1zGVzcyaMuN7thPVsip3kh+DGpw J4QtCepJMnMsUdVBUmcUCvOrevAzbeIgFTvTahXdQ1XOJtDHnXg93uUqnB0rwVDAqVwC Tv0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=U4JBkHwZ; 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 qw14-20020a1709066a0e00b0078da3cd3073si14925000ejc.628.2022.11.01.15.31.32; Tue, 01 Nov 2022 15:31:56 -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=U4JBkHwZ; 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 S230280AbiKAWWz (ORCPT + 99 others); Tue, 1 Nov 2022 18:22:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57988 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230165AbiKAWWw (ORCPT ); Tue, 1 Nov 2022 18:22:52 -0400 Received: from mail-pj1-x102c.google.com (mail-pj1-x102c.google.com [IPv6:2607:f8b0:4864:20::102c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D499319C13 for ; Tue, 1 Nov 2022 15:22:51 -0700 (PDT) Received: by mail-pj1-x102c.google.com with SMTP id v4-20020a17090a088400b00212cb0ed97eso256418pjc.5 for ; Tue, 01 Nov 2022 15:22:51 -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=uhDBAUhO5scPlfZQJJkosTaLVirDeVVGs54DNXhKQpg=; b=U4JBkHwZ9YjBgtJFqGJIhTwVRG1U3DJ4XqLA9TnHH1CZp6GdyHKLYgQ+o5Y1u2QBPj fTJmP6U1Z+wznRqQT5hkSlw+EphKFYnQYZIvuC0uUkiVK5TUEWxPnwpd4m/RpbXlL0HC 4qwqxdROBnxcvdQzFKuAwLc0tcgH8e4nkt54U= 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=uhDBAUhO5scPlfZQJJkosTaLVirDeVVGs54DNXhKQpg=; b=IiAAYv9OsMzlSfgZZDILC9PVqp5vlvq0sW70OPiREE3T8L1/oigf9lt3of95d2zswy 3wMDCiLs0Bx/OxXWzFvKgg3/93XIUFKx+KVoJ0QsSgI5tviTPLCbNQsI+uuz0suBwEoA lkoWThmMYH/OyBq6cmuwyuUitnv0bZ5dbezrTVlSErXCyfwmLntFCdW4IFt4mt3UCAQe kh+iO5IsVGQ0dDY2rA024VVRPq8omDE9Hyv6ixppto3lWMzaFweTq7tGhZSyfsx8gGbe 4TKchYXYwONe0O+X5jf8Jrpf+Blq/6a/kxYzU1HoOw/5WHV3Yo4aEI0FjYQbwyDid4gv xoIA== X-Gm-Message-State: ACrzQf3CeZhtauquCZpN0TCyuWImgaZT2twNtEL3bE7SRB+HOO5s7IIs poVOVfbXGz2CHODp0LmXMseqLg== X-Received: by 2002:a17:90b:1950:b0:212:de19:b3ce with SMTP id nk16-20020a17090b195000b00212de19b3cemr21874558pjb.16.1667341371422; Tue, 01 Nov 2022 15:22:51 -0700 (PDT) Received: from localhost ([2620:15c:9d:2:9c5f:7c8e:b8a2:3495]) by smtp.gmail.com with UTF8SMTPSA id cp15-20020a170902e78f00b0017f5ba1fffasm6797659plb.297.2022.11.01.15.22.50 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 01 Nov 2022 15:22:51 -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 2/5] platform/chrome: cros_ec_lpc: Mark PROBE_PREFER_ASYNCHRONOUS Date: Tue, 1 Nov 2022 15:22:07 -0700 Message-Id: <20221101152132.v2.2.Ib1036816e77aba71ebc16b71f7615c55d054689c@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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748334717117631280?= X-GMAIL-MSGID: =?utf-8?q?1748334717117631280?= This takes on the order of 60ms to probe on some systems, so let it probe asynchronously. It shouldn't have any dependencies that aren't handled cleanly. Signed-off-by: Brian Norris --- (no changes since v1) drivers/platform/chrome/cros_ec_lpc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/platform/chrome/cros_ec_lpc.c b/drivers/platform/chrome/cros_ec_lpc.c index 48302183d62e..2e4dba724ada 100644 --- a/drivers/platform/chrome/cros_ec_lpc.c +++ b/drivers/platform/chrome/cros_ec_lpc.c @@ -557,6 +557,7 @@ static struct platform_driver cros_ec_lpc_driver = { .name = DRV_NAME, .acpi_match_table = cros_ec_lpc_acpi_device_ids, .pm = &cros_ec_lpc_pm_ops, + .probe_type = PROBE_PREFER_ASYNCHRONOUS, }, .probe = cros_ec_lpc_probe, .remove = cros_ec_lpc_remove,