Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp85068rwi; Sun, 30 Oct 2022 20:57:45 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7ni7amSOI9mcIUKG50/FsYKd9atQ0f+q/v4yR6uusGs1tA1jLNGQlo9Wz2ZpGlv7YZLQs7 X-Received: by 2002:a17:902:bf08:b0:178:90fb:8cda with SMTP id bi8-20020a170902bf0800b0017890fb8cdamr12061581plb.9.1667188664948; Sun, 30 Oct 2022 20:57:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667188664; cv=none; d=google.com; s=arc-20160816; b=A6U/HbyNkyo/gU6u4FXVQfBZrGpY3hLuZ1YM/E5awPGV/JSIdbbY2aKnFQ4LU8UTEG /rruLw6dluVnvVGdIrMbsReCE06vNT4IGk5k2VIhg2ILYrlv9VMvk0L5NLS5w6q1EXkT y/+th9KmuAJ4cdB/BSRpBBBi36yWACTNEEFbxO3VU63y5W/3Qh8Z92i7jAdMm0uUwP66 pyF7kGNi37O09jYYM/MfzwMccrQ+u0g0NfWV2u8zFh3R9YWfug4lX/mhH3ywN8bI27fW 6qjpDtFO36KJ38AssieLf0Wh1tdVNrmO/SQZohRdbahNc1Sp3BpcFMNHnLYq+V3pctF6 g/cg== 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=eojpOnKYxEuE+Hb1fLiytrJguJoVmdPOwG26b/IYxxI=; b=b+gocH4RLSFq1eAe+E+9ZWz+Uc6xye9GPxw1qA3l+FrINAA68Cr/TQbp/2u6mTgnK3 nAwmEwdXZ4f7JW0hpclGSEG1kxp7If7Gc/cOmMvD5r01Ai9bPTirRI4IqrqB61CrOZny J4ynVD8nm0N+V9Hn7rrWPt14Od+qJFEglvYZsZ2LP0h62fdb491z1hYI6DLGl+yTRegr 8Ck3W0LPed5OIRvR3S3bmBVFUbkRaKa+FpHUIdcdrvv/Sma1GdyCFGNbbVg0jFiN1J5q Wg4cmakKWBuZlkLwKgVKQcj2QGg8MrGszRBVGDGw1DRsRdHwfqL8YvqeufLLAdEPHpbF SjBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=DXqKD7yu; 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 o1-20020a056a0015c100b0056c2e395593si8262667pfu.167.2022.10.30.20.57.32; Sun, 30 Oct 2022 20:57:44 -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=DXqKD7yu; 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 S229726AbiJaDvl (ORCPT + 99 others); Sun, 30 Oct 2022 23:51:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49476 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229542AbiJaDvk (ORCPT ); Sun, 30 Oct 2022 23:51:40 -0400 Received: from mail-pg1-x52d.google.com (mail-pg1-x52d.google.com [IPv6:2607:f8b0:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8DDB56148 for ; Sun, 30 Oct 2022 20:51:39 -0700 (PDT) Received: by mail-pg1-x52d.google.com with SMTP id b5so9663395pgb.6 for ; Sun, 30 Oct 2022 20:51:39 -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=eojpOnKYxEuE+Hb1fLiytrJguJoVmdPOwG26b/IYxxI=; b=DXqKD7yuSfoOAIJ/f5MO0aq+9Y4rj8xPW6TD78CipU8qvAEJrcZKcjxXurb5AEVNnu 0b/kMljABZaADPsjeJrnGU6f+nxKGvAfTC2du/fHNFK8cFnm1gs0zPkOPnFa0ZUKshvP TczVGnYqFxQS7UxbIwYIA5t0PpOzteMIhavTE= 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=eojpOnKYxEuE+Hb1fLiytrJguJoVmdPOwG26b/IYxxI=; b=05uk8/wmiyDqGkuOJ6aiqNE1WrcAAU7cKvViGVLTMyg088c0gEL9MZPYIGYj2gN6PX NLdXxhYl5M6amCrSlD/+6dRI9ivqskOGLbVc5ayVsKLyvE+MCdoF9IUk5Ps7Dbgb945z nUF9OPdpl+Ts9ZtilS04iVPDZjilH+BdTFrly39rYLJHgdFXsxM8IAzXhi52tHDBVxgt UL52hfudsPgGqDcQ5i8fVlyx6Nk3i/6lZVN4e1KV7XyrbBtzZv5xErdWS66i+KEaZmYx dB2e5VSM1d1nx6Aw0+iY+4DEG/ptDWI5kuUf+zF28cDiRHsZj8BCYdat5TSTx6Ee095/ Lj/A== X-Gm-Message-State: ACrzQf1nSLnJcKnfPiSAiommDQibbUwFKTRHTpLIuvzpm54OyDhvH5vk 9dnLSbGxNMRMlN0CBybdDtIkBg== X-Received: by 2002:a63:6909:0:b0:41c:9f4f:a63c with SMTP id e9-20020a636909000000b0041c9f4fa63cmr11293418pgc.76.1667188299072; Sun, 30 Oct 2022 20:51:39 -0700 (PDT) Received: from rekanorman3.syd.corp.google.com ([2401:fa00:9:14:4fdc:505:9b5a:4c97]) by smtp.gmail.com with ESMTPSA id d85-20020a621d58000000b0056bc30e618dsm3371384pfd.38.2022.10.30.20.51.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 30 Oct 2022 20:51:38 -0700 (PDT) From: Reka Norman To: Mathias Nyman Cc: Reka Norman , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org Subject: [PATCH v2] xhci: Apply XHCI_RESET_TO_DEFAULT quirk to ADL-N Date: Mon, 31 Oct 2022 14:51:14 +1100 Message-Id: <20221031035114.1803570-1-rekanorman@chromium.org> X-Mailer: git-send-email 2.38.1.273.g43a17bfeac-goog 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 ADL-N systems have the same issue as ADL-P, where a large boot firmware delay is seen if USB ports are left in U3 at shutdown. So apply the XHCI_RESET_TO_DEFAULT quirk to ADL-N as well. This patch depends on commit 34cd2db408d5 ("xhci: Add quirk to reset host back to default state at shutdown"). The issue it fixes is a ~20s boot time delay when booting from S5. It affects ADL-N devices, and ADL-N support was added starting from v5.16. Signed-off-by: Reka Norman --- Changes in v2: - Add more details to the commit message. drivers/usb/host/xhci-pci.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/usb/host/xhci-pci.c b/drivers/usb/host/xhci-pci.c index 7bccbe50bab15..f98cf30a3c1a5 100644 --- a/drivers/usb/host/xhci-pci.c +++ b/drivers/usb/host/xhci-pci.c @@ -59,6 +59,7 @@ #define PCI_DEVICE_ID_INTEL_TIGER_LAKE_XHCI 0x9a13 #define PCI_DEVICE_ID_INTEL_MAPLE_RIDGE_XHCI 0x1138 #define PCI_DEVICE_ID_INTEL_ALDER_LAKE_PCH_XHCI 0x51ed +#define PCI_DEVICE_ID_INTEL_ALDER_LAKE_N_PCH_XHCI 0x54ed #define PCI_DEVICE_ID_AMD_RENOIR_XHCI 0x1639 #define PCI_DEVICE_ID_AMD_PROMONTORYA_4 0x43b9 @@ -246,7 +247,8 @@ static void xhci_pci_quirks(struct device *dev, struct xhci_hcd *xhci) xhci->quirks |= XHCI_MISSING_CAS; if (pdev->vendor == PCI_VENDOR_ID_INTEL && - pdev->device == PCI_DEVICE_ID_INTEL_ALDER_LAKE_PCH_XHCI) + (pdev->device == PCI_DEVICE_ID_INTEL_ALDER_LAKE_PCH_XHCI || + pdev->device == PCI_DEVICE_ID_INTEL_ALDER_LAKE_N_PCH_XHCI)) xhci->quirks |= XHCI_RESET_TO_DEFAULT; if (pdev->vendor == PCI_VENDOR_ID_INTEL && -- 2.38.1.273.g43a17bfeac-goog