From patchwork Wed May 11 22:04:50 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathias Nyman X-Patchwork-Id: 572026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 17E0EC433EF for ; Wed, 11 May 2022 22:04:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348462AbiEKWD7 (ORCPT ); Wed, 11 May 2022 18:03:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50406 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348525AbiEKWDy (ORCPT ); Wed, 11 May 2022 18:03:54 -0400 Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C753D19C21 for ; Wed, 11 May 2022 15:03:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1652306633; x=1683842633; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=hi7qB9jwhxCN83yPDd+hTjCaxGY6omjh4Ls4Qp0eP+k=; b=kbSGreuLvfxvjYq+1lSbgQEYWSmqU0eQwjFEjejmvuiensdWmWpd9cLG 67eIkt6nCWBymmfy5mDChl0NlfPtGW6AUSf2FxT20Lie0z1W7goGWcy7Q AEh1/PKrzGDnYE7GpPZ+DRzlpKG0sv8ISEpLQu6XMEQEQe1ogiM+6u9lx hRq5qtpFGj4swHYWGpya5v+3tiYX5mRiN7T1rKfXU0vsnX6MxxSghjugF bWP51uQd5jg6hSynHp1HXaUeTbk0ryXGsf0wdeF7ygL7BEVM6ArzT+QUC ougBE7LD4WQhjatYOYGCWdDSvYsd6ITp7SPOPxAUcYjJzE6+G9aFNhQzq w==; X-IronPort-AV: E=McAfee;i="6400,9594,10344"; a="330427467" X-IronPort-AV: E=Sophos;i="5.91,218,1647327600"; d="scan'208";a="330427467" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 May 2022 15:03:53 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,218,1647327600"; d="scan'208";a="542496290" Received: from mattu-haswell.fi.intel.com ([10.237.72.199]) by orsmga006.jf.intel.com with ESMTP; 11 May 2022 15:03:51 -0700 From: Mathias Nyman To: Cc: , Mathias Nyman , Gopal Vamshi Krishna , stable@kernel.org Subject: [PATCH 9/9] xhci: Allow host runtime PM as default for Intel Alder Lake N xHCI Date: Thu, 12 May 2022 01:04:50 +0300 Message-Id: <20220511220450.85367-10-mathias.nyman@linux.intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220511220450.85367-1-mathias.nyman@linux.intel.com> References: <20220511220450.85367-1-mathias.nyman@linux.intel.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org Alder Lake N TCSS xHCI needs to be runtime suspended whenever possible to allow the TCSS hardware block to enter D3 and thus save energy Suggested-by: Gopal Vamshi Krishna Cc: stable@kernel.org Signed-off-by: Mathias Nyman --- drivers/usb/host/xhci-pci.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/usb/host/xhci-pci.c b/drivers/usb/host/xhci-pci.c index 49ba94de7459..fac9492a8bda 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_XHCI 0x461e +#define PCI_DEVICE_ID_INTEL_ALDER_LAKE_N_XHCI 0x464e #define PCI_DEVICE_ID_INTEL_ALDER_LAKE_PCH_XHCI 0x51ed #define PCI_DEVICE_ID_AMD_RENOIR_XHCI 0x1639 @@ -267,6 +268,7 @@ static void xhci_pci_quirks(struct device *dev, struct xhci_hcd *xhci) pdev->device == PCI_DEVICE_ID_INTEL_TIGER_LAKE_XHCI || pdev->device == PCI_DEVICE_ID_INTEL_MAPLE_RIDGE_XHCI || pdev->device == PCI_DEVICE_ID_INTEL_ALDER_LAKE_XHCI || + pdev->device == PCI_DEVICE_ID_INTEL_ALDER_LAKE_N_XHCI || pdev->device == PCI_DEVICE_ID_INTEL_ALDER_LAKE_PCH_XHCI)) xhci->quirks |= XHCI_DEFAULT_PM_RUNTIME_ALLOW;