Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp3078802rwi; Fri, 28 Oct 2022 15:39:55 -0700 (PDT) X-Google-Smtp-Source: AMsMyM53ELviTWJtD9G1ANn1SKMJxC0RRJ3sW7AARpXv+Q+1TpXwGO1lITdk83d31Di5/5bgVPvI X-Received: by 2002:a05:6402:440d:b0:450:de54:3fcf with SMTP id y13-20020a056402440d00b00450de543fcfmr1597083eda.312.1666996795596; Fri, 28 Oct 2022 15:39:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666996795; cv=none; d=google.com; s=arc-20160816; b=0UrNPFBi4OSIPu5r9tWtnohJ16zW91ydCvNqfdChO9ek1F6VkPnle2U92/pKq6+8rg M8Idr7orZ7gjKA0sstoaE7RnvYgD6o0bODY7VKipvEv4yr9rQXF26Dcyy+os53EccOA0 N6tbZ4jtVF42+ynbjyXGoLjHiSQmEq6a04qnIgawek9R3opZ6+o3pbNNZo2suDqgEIbk accxmv5XDmAlYKSU9d1pWYdjWwmfB27mjbWSbqcechUd05vjsp18oyVNrlSLsdrayLx8 1SaAYQHYgKw6fPxstvM+1DdajxXC93PYQjrWOkuDq6dbnM1ebSW3ywftNzasrPFZwZ1P fD6A== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=+ReCGUZkiii68cxY5IFdEUSZ/im3lxKgaunLDv0fff4=; b=LcRqr5UjAUvInOOodTM8aPbCxkDMz1LZNr6cWYhP0YPJ1HQWuKHHf38VO9/kwNNtjA 2Bi2Uo5NeFbp5BKt3PzisKg6XIBl65jFta2nuWvtcV/n3VzFYO2uRvUllyy4AK7DIw27 hJFBs6G9cfRIMJiNbFYmolNmuYuzanwlD0oT1KOEcSWbvYkVmNdCRbLQt15MlZL7vgyL 7sGxNZJxaeRExsfxafmAgbX5t8p5LYIbSr8sZZXL4O5ifaa8dm1EKAMRblNwV96wI9h1 QoXxa+m5ZtvbL+Lp0UOCOOjBsuoN6KkIJD3A+juZcdxf7sj0NScWot1BW3+BqCjFrJ4C Gu1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=dfyzPY26; 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 ch24-20020a170906c2d800b007801a579899si4385019ejb.448.2022.10.28.15.39.30; Fri, 28 Oct 2022 15:39:55 -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=dfyzPY26; 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 S229648AbiJ1VTU (ORCPT + 99 others); Fri, 28 Oct 2022 17:19:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45344 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229450AbiJ1VTS (ORCPT ); Fri, 28 Oct 2022 17:19:18 -0400 Received: from mail-pj1-x1033.google.com (mail-pj1-x1033.google.com [IPv6:2607:f8b0:4864:20::1033]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 104A624AE1C for ; Fri, 28 Oct 2022 14:19:18 -0700 (PDT) Received: by mail-pj1-x1033.google.com with SMTP id o7so2498580pjj.1 for ; Fri, 28 Oct 2022 14:19:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=+ReCGUZkiii68cxY5IFdEUSZ/im3lxKgaunLDv0fff4=; b=dfyzPY26KbrgwSdtg2Eu9muTgcMpRXIMEJnsdw50KY+jAxf3zk92oBn8bsHdNzq1nb iQQJEqJQaOQy8a/V1OTKldPw9obGnX3WoxPGSuiVLCVEQIw2aR5hgjPPFg2//6LRG2eD /pgH8SqGafhbQnprbtIKIj9gW+eAi57yGg3l0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=+ReCGUZkiii68cxY5IFdEUSZ/im3lxKgaunLDv0fff4=; b=wvW+c3PehlLXzD9eGMJLmRU7nHVBco7OqFuyv1x47DVm8MRRne9Iqw2YLr479WEHIZ bPy6rhoA1/i2ROeAkTqEFLvmGX4LRW/COceTx5CIJiMTXbA2WSez9ZfYAYONRURTkCei QXn1wGzpkHw5/tm03c6EeF4Gl2dQhna9Br6esZub3zOqd1SP4UFMXbQZWT1nxlt8TJOc VJeNgemc9p5px4EqiRZE3oMRcg4lcyJdLoklk9/1MgbbpZcQcXTC6jXTpK+Hs7xFc9ux aYEoFCxXrrE985xPCOsQ3PRpkikKaZ76njBIsJVallEmY47wfVuKdycEfe7gIXDFSWEZ U4fw== X-Gm-Message-State: ACrzQf3Khs2s0CwDmP3Bz8JhvVL+To9J0sYIInCVYzfzQrcbhfIXo10y B8NJUYTYxeQ35hpX4A4bQy2F6g== X-Received: by 2002:a17:902:dacf:b0:185:3735:ffc7 with SMTP id q15-20020a170902dacf00b001853735ffc7mr930436plx.147.1666991957575; Fri, 28 Oct 2022 14:19:17 -0700 (PDT) Received: from localhost ([2620:15c:9d:2:65f9:c180:249c:190f]) by smtp.gmail.com with UTF8SMTPSA id f5-20020a170902860500b00186c37270f6sm3452364plo.24.2022.10.28.14.19.16 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 28 Oct 2022 14:19:17 -0700 (PDT) From: Brian Norris To: Alan Stern , Greg Kroah-Hartman , Mathias Nyman Cc: Brian Norris , linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org Subject: [PATCH 1/2] usb: ehci-pci: Set PROBE_PREFER_ASYNCHRONOUS Date: Fri, 28 Oct 2022 14:19:07 -0700 Message-Id: <20221028141821.1.I9a5353f81d1509f85f3a04f0cdc9099f6fe60811@changeid> X-Mailer: git-send-email 2.38.1.273.g43a17bfeac-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 This driver often takes on the order of 8ms to start, but every little bit counts. 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 --- drivers/usb/host/ehci-pci.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/usb/host/ehci-pci.c b/drivers/usb/host/ehci-pci.c index 17f8b6ea0c35..4b148fe5e43b 100644 --- a/drivers/usb/host/ehci-pci.c +++ b/drivers/usb/host/ehci-pci.c @@ -411,11 +411,12 @@ static struct pci_driver ehci_pci_driver = { .remove = ehci_pci_remove, .shutdown = usb_hcd_pci_shutdown, -#ifdef CONFIG_PM .driver = { - .pm = &usb_hcd_pci_pm_ops - }, +#ifdef CONFIG_PM + .pm = &usb_hcd_pci_pm_ops, #endif + .probe_type = PROBE_PREFER_ASYNCHRONOUS, + }, }; static int __init ehci_pci_init(void) -- 2.38.1.273.g43a17bfeac-goog