Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3554701pxb; Wed, 13 Oct 2021 08:18:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxJh4fzoLXH5D70+oicfcjPh2YYXI2sz5dCP9eMblHi3doDZ/NBIsqD8DA9B110DAMovfax X-Received: by 2002:a17:903:32cf:b0:13f:d59:7a4c with SMTP id i15-20020a17090332cf00b0013f0d597a4cmr33704245plr.78.1634138321229; Wed, 13 Oct 2021 08:18:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634138321; cv=none; d=google.com; s=arc-20160816; b=b2OtkBl1SR0ndG3ITFkkidmWWW8RjB/8KPGeIV55JnhYhiN+6yG1RJA6ThNSEE4iFt YXb5zSc7NXF53hLEcUsTkebwSv+8grX8Mi+ZoQ08v+r1dAis6UnHKPMfBXdBRVlMeTW/ oXigibSXUYB2l64WIItP+3UYALDKG5Klboqbpc0YxVlwXq1uoQ2d2ZKtZY22yKaYuOmE 89TvpEfvWWuzMwt3VjhiJddT0dLM7wvi91OQX6647k3uL24otE7QMHO9zHIWcO2geUa4 NdLhiQNky0WzLvwKxjMjaLfjKXRDZTvZ7dVnWhFiSaW65X+4gIwMmpD8q+LS4IMhS/KF OHHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=YkkGNTNsYotwUvwjoWPlvnx5nAORR+YAJVMUtIoc5K0=; b=zhkSPFaKF4eq+8YBP868NcWyStEOgYpFbLdHFWOfv90IJNd9EwiBrojSX4kWoR19RP yRzj30X+KTbx9gYJZEEgN4FpPZSWz/AfPehM6RoS8gLl8UAn88atWXrUkLbK21LpOaae pDBFxmabcwW0W5Jh4EYvbPbQ955PNcvJjzHMmLKGjrvhT1uI54l+9wSe3JcYwqKCFVj4 XWNGuWnGESRHLLgOQUqyHq2Gj8aoDYiJ0eOgzCsHvbS8Jq3ndepok0uWVbWGSEjhshr6 DxKiT8anjphVxDp98uUN5gop5ypUOuQKio1s/fsVv5qK2NSWQ/sLEB2pSWBt1wvIB6m0 aPlQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q13si6947122plk.34.2021.10.13.08.18.16; Wed, 13 Oct 2021 08:18:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230440AbhJMPTE (ORCPT + 99 others); Wed, 13 Oct 2021 11:19:04 -0400 Received: from mga17.intel.com ([192.55.52.151]:40373 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229514AbhJMPTD (ORCPT ); Wed, 13 Oct 2021 11:19:03 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10136"; a="208250992" X-IronPort-AV: E=Sophos;i="5.85,371,1624345200"; d="scan'208";a="208250992" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Oct 2021 08:16:59 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,371,1624345200"; d="scan'208";a="626379598" Received: from mattu-haswell.fi.intel.com (HELO [10.237.72.199]) ([10.237.72.199]) by fmsmga001.fm.intel.com with ESMTP; 13 Oct 2021 08:16:57 -0700 Subject: Re: [PATCH] usb: xhci: Enable runtime-pm by default on AMD Yellow Carp platform To: "Shah, Nehal-bakulchandra" , mathias.nyman@intel.com, gregkh@linuxfoundation.org Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Shyam Sundar S K , Mario Limonciello , Basavaraj Natikar References: <20210920154100.3195683-1-Nehal-Bakulchandra.shah@amd.com> From: Mathias Nyman Message-ID: Date: Wed, 13 Oct 2021 18:18:16 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11.10.2021 15.59, Shah, Nehal-bakulchandra wrote: > Hi > > On 9/20/2021 9:11 PM, Nehal Bakulchandra Shah wrote: >> AMD's Yellow Carp platform supports runtime power management for >> XHCI Controllers, so enable the same by default for all XHCI Controllers. >> >> Signed-off-by: Nehal Bakulchandra Shah >> Reviewed-by: Shyam Sundar S K >> Reviewed-by: Mario Limonciello >> Reviewed-by: Basavaraj Natikar >> --- >>   drivers/usb/host/xhci-pci.c | 15 +++++++++++++++ >>   1 file changed, 15 insertions(+) >> >> diff --git a/drivers/usb/host/xhci-pci.c b/drivers/usb/host/xhci-pci.c >> index 2c9f25ca8edd..0e571d6af2ab 100644 >> --- a/drivers/usb/host/xhci-pci.c >> +++ b/drivers/usb/host/xhci-pci.c >> @@ -69,6 +69,12 @@ >>   #define PCI_DEVICE_ID_ASMEDIA_1142_XHCI            0x1242 >>   #define PCI_DEVICE_ID_ASMEDIA_2142_XHCI            0x2142 >>   #define PCI_DEVICE_ID_ASMEDIA_3242_XHCI            0x3242 >> +#define PCI_DEVICE_ID_AMD_YELLOW_CARP_XHCI_1    0x161a >> +#define PCI_DEVICE_ID_AMD_YELLOW_CARP_XHCI_2    0x161b >> +#define PCI_DEVICE_ID_AMD_YELLOW_CARP_XHCI_3    0x161d >> +#define PCI_DEVICE_ID_AMD_YELLOW_CARP_XHCI_4    0x161e >> +#define PCI_DEVICE_ID_AMD_YELLOW_CARP_XHCI_5    0x15d6 >> +#define PCI_DEVICE_ID_AMD_YELLOW_CARP_XHCI_6    0x15d7 >>     static const char hcd_name[] = "xhci_hcd"; >>   @@ -313,6 +319,15 @@ static void xhci_pci_quirks(struct device *dev, struct xhci_hcd *xhci) >>            pdev->device == PCI_DEVICE_ID_AMD_PROMONTORYA_4)) >>           xhci->quirks |= XHCI_NO_SOFT_RETRY; >>   +    if (pdev->vendor == PCI_VENDOR_ID_AMD && >> +        (pdev->device == PCI_DEVICE_ID_AMD_YELLOW_CARP_XHCI_1 || >> +        pdev->device == PCI_DEVICE_ID_AMD_YELLOW_CARP_XHCI_2 || >> +        pdev->device == PCI_DEVICE_ID_AMD_YELLOW_CARP_XHCI_3 || >> +        pdev->device == PCI_DEVICE_ID_AMD_YELLOW_CARP_XHCI_4 || >> +        pdev->device == PCI_DEVICE_ID_AMD_YELLOW_CARP_XHCI_5 || >> +        pdev->device == PCI_DEVICE_ID_AMD_YELLOW_CARP_XHCI_6)) >> +        xhci->quirks |= XHCI_DEFAULT_PM_RUNTIME_ALLOW; >> + >>       if (xhci->quirks & XHCI_RESET_ON_RESUME) >>           xhci_dbg_trace(xhci, trace_xhci_dbg_quirks, >>                   "QUIRK: Resetting on resume"); >> > > ping > Now sent forward to Greg, thanks -Mathias