[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20221004041225.1462336-4-mario.limonciello@amd.com>
Date: Mon, 3 Oct 2022 23:12:25 -0500
From: Mario Limonciello <mario.limonciello@....com>
To: Mika Westerberg <mika.westerberg@...ux.intel.com>
CC: "open list:THUNDERBOLT DRIVER" <linux-usb@...r.kernel.org>,
<linux-kernel@...r.kernel.org>, <Sanju.Mehta@....com>,
Mario Limonciello <mario.limonciello@....com>
Subject: [RFC 3/3] xhci-pci: Allow host runtime PM as default for AMD Pink Sardine
The XHCI controllers not connected to the USB4 controller via a device
link can support D3. For optimal runtime power consumption on AMD Pink
Sardine, all XHCI controllers must support runtime suspend.
Signed-off-by: Mario Limonciello <mario.limonciello@....com>
---
drivers/usb/host/xhci-pci.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/drivers/usb/host/xhci-pci.c b/drivers/usb/host/xhci-pci.c
index 44defa8b796f7..a569b29a46a99 100644
--- a/drivers/usb/host/xhci-pci.c
+++ b/drivers/usb/host/xhci-pci.c
@@ -69,6 +69,8 @@
#define PCI_DEVICE_ID_AMD_YELLOW_CARP_XHCI_4 0x161e
#define PCI_DEVICE_ID_AMD_YELLOW_CARP_XHCI_5 0x161c
#define PCI_DEVICE_ID_AMD_YELLOW_CARP_XHCI_6 0x161f
+#define PCI_DEVICE_ID_AMD_PINK_SARDINE_XHCI_1 0x15b9
+#define PCI_DEVICE_ID_AMD_PINK_SARDINE_XHCI_2 0x15ba
#define PCI_DEVICE_ID_ASMEDIA_1042_XHCI 0x1042
#define PCI_DEVICE_ID_ASMEDIA_1042A_XHCI 0x1142
@@ -328,7 +330,9 @@ static void xhci_pci_quirks(struct device *dev, struct xhci_hcd *xhci)
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))
+ pdev->device == PCI_DEVICE_ID_AMD_YELLOW_CARP_XHCI_6 ||
+ pdev->device == PCI_DEVICE_ID_AMD_PINK_SARDINE_XHCI_1 ||
+ pdev->device == PCI_DEVICE_ID_AMD_PINK_SARDINE_XHCI_2))
xhci->quirks |= XHCI_DEFAULT_PM_RUNTIME_ALLOW;
if (xhci->quirks & XHCI_RESET_ON_RESUME)
--
2.34.1
Powered by blists - more mailing lists