From patchwork Fri Oct 28 21:14:46 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brian Norris X-Patchwork-Id: 12564 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1050495wru; Fri, 28 Oct 2022 14:24:43 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6v3fBrUBJx3I2ZD5fO6+wKex27+og/bGG66klF/Dve3MD2GsTaKmzHFyUy1wgyoYPo6TvZ X-Received: by 2002:a17:90a:df04:b0:213:1cf1:435d with SMTP id gp4-20020a17090adf0400b002131cf1435dmr1327990pjb.210.1666992283639; Fri, 28 Oct 2022 14:24:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666992283; cv=none; d=google.com; s=arc-20160816; b=HkmPTlWaQv1sqoQcqr3dgl63vfcN8cwRemfQrajcCCzI7pvuEm6CprlqpyFSGeTa+5 cXGQUn5hBfsTYu8QsBv8kPxUjzg+PeIzYiqQiltPZ7MHZgXDgxhQmH463dk5hhJwM3Yf rRS4WxRpkvANz7VsIL7hx/rYS/HPfvqxyZJFqTnIgzGUMCaLf3cWayH3bf8+0t/vqJJI VSeWnVwNUa+FZzCNRHrRYzqUc0Dx+wFC4jI2lvfG4+LpHx45How/IbnZPcJ0cYbeJuT0 jmHT/Ad0iSZ37FOIa7FzLXKLAbr4Wa2pFAGkq0ioEMCOkomyQi3nnTXiOQ238zxPnRBA Nm2g== 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=Ujrrf0uboQfvYL+QX/6R/v6yRcsPGzo+vWDkIBpQC3U=; b=uqkq+kM2fTYR+TZG8JmytQYVNb9StG7VgRiQrIgY9LpRWp8OI9XOB9xv/MwN0YJou9 MH2RdQdgqtkyIhCWvVMmaIMQqKzhpI6smOryBc+waZezx+QAyoJyDKaerbZkPl18k+lU GdBsd3LAEjrUWrCAGXDhH49bi4Km8rLfq/F+sFSNwqriTEJKURoUv1EjEdvyx56SWUxN Q2qfPu62GqvleTlIMry9jU9R3BiipZYElo9X+eyrqX0cVQOfwpR0iQZtp0Si0ZJg4LsF lK7itXUEg84us/J2y2dQrBcmho5VxiudOHjbXPKw4OqQWKyWUSr/iPXNlWnlPULNl2UR M+1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=hAMboiNX; 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 b20-20020a63cf54000000b0042aff6e2846si6111665pgj.251.2022.10.28.14.24.30; Fri, 28 Oct 2022 14:24:43 -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=hAMboiNX; 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 S229943AbiJ1VPK (ORCPT + 99 others); Fri, 28 Oct 2022 17:15:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37698 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229870AbiJ1VO6 (ORCPT ); Fri, 28 Oct 2022 17:14:58 -0400 Received: from mail-pf1-x42f.google.com (mail-pf1-x42f.google.com [IPv6:2607:f8b0:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 00C7626106 for ; Fri, 28 Oct 2022 14:14:56 -0700 (PDT) Received: by mail-pf1-x42f.google.com with SMTP id g62so5786903pfb.10 for ; Fri, 28 Oct 2022 14:14:56 -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=Ujrrf0uboQfvYL+QX/6R/v6yRcsPGzo+vWDkIBpQC3U=; b=hAMboiNXGwzfogwxNxk25ISfrCRUAyN7N3a6mSeDYroLEWBaazVzLEC+zF5fvgia4K F6xKEvTkHf3OzZ/LX7vRLmZOMCPETGhoptAdqfilrdBTeqytGpy25zvj2XOaBvJB6tNq zLwTDQjHsulpSbhRPP7Qx9mrR80jZr3sO4Tzw= 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=Ujrrf0uboQfvYL+QX/6R/v6yRcsPGzo+vWDkIBpQC3U=; b=Kqm1cf7xxS+x+Dkd5CbSxFpLDOeS0VFl0H3H+s9Sodf0gHGY8pdMous6GoSSU8fOiV KoiSyhHgVz6cnG84+d9cB5H6u7w4TQwhHlutw0UFJKsMOxgFPeV6ew2j3DJVmZhL5NwT iFP4u0G7Hp4sWfWxpOyJDKSbXJtTihLo1+UjSy4PoP3HXX6nRMtYJGVpt20kd3sTfp0u nvMgmqkPMMRIp0dEYzrLu1efZFyFJl7tZqDEXlFkXwKzpDojfw7xSnfVQY3bq1guG2VI dl5yiQn3niRM+Arrvr3jn8iAoNeaon6HOJbWu131Xnu1+zE7TOsH0K/hl4DsjLfOzI2I cmCw== X-Gm-Message-State: ACrzQf1KQvpZBoy4xV9WPEcEmbg2Og5RN0pH7vU7jzc93MH9KU0sGAB1 EiqKAjcz02JKV3YCZynNtM5/M9ciPgRD8w== X-Received: by 2002:a05:6a02:306:b0:46e:de86:8b24 with SMTP id bn6-20020a056a02030600b0046ede868b24mr1229478pgb.385.1666991695906; Fri, 28 Oct 2022 14:14:55 -0700 (PDT) Received: from localhost ([2620:15c:9d:2:65f9:c180:249c:190f]) by smtp.gmail.com with UTF8SMTPSA id b15-20020a170902650f00b00186c54188b4sm3442109plk.240.2022.10.28.14.14.55 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 28 Oct 2022 14:14:55 -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 2/5] platform/chrome: cros_ec_lpc: Mark PROBE_PREFER_ASYNCHRONOUS Date: Fri, 28 Oct 2022 14:14:46 -0700 Message-Id: <20221028141411.2.Ib1036816e77aba71ebc16b71f7615c55d054689c@changeid> X-Mailer: git-send-email 2.38.1.273.g43a17bfeac-goog In-Reply-To: <20221028141411.1.I0728421299079b104710c202d5d7095b2674fd8c@changeid> References: <20221028141411.1.I0728421299079b104710c202d5d7095b2674fd8c@changeid> MIME-Version: 1.0 X-Spam-Status: No, score=-2.6 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?1747968100683510315?= X-GMAIL-MSGID: =?utf-8?q?1747968100683510315?= 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 --- 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 0b6c7c912ec7..527092ffdecb 100644 --- a/drivers/platform/chrome/cros_ec_lpc.c +++ b/drivers/platform/chrome/cros_ec_lpc.c @@ -559,6 +559,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,