All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] usb: pci-quirks: add XHCI_COMP_MODE_QUIRK for disabling amd xhci D3cold
@ 2021-01-19  1:48 Prike Liang
  2021-01-26 12:30 ` Liang, Prike
  2021-01-27 11:33 ` Greg KH
  0 siblings, 2 replies; 8+ messages in thread
From: Prike Liang @ 2021-01-19  1:48 UTC (permalink / raw)
  To: linux-usb; +Cc: mathias.nyman, Prike Liang

During xhci suspend some AMD USB host will lose port status change events and
need to have the registers polled during D3, so now just avoid D3cold.

Signed-off-by: Prike Liang <Prike.Liang@amd.com>
---
 drivers/usb/host/xhci-pci.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/usb/host/xhci-pci.c b/drivers/usb/host/xhci-pci.c
index 3feaafe..bff817a 100644
--- a/drivers/usb/host/xhci-pci.c
+++ b/drivers/usb/host/xhci-pci.c
@@ -170,6 +170,11 @@ static void xhci_pci_quirks(struct device *dev, struct xhci_hcd *xhci)
 		(pdev->device == PCI_DEVICE_ID_AMD_PROMONTORYA_1)))
 		xhci->quirks |= XHCI_U2_DISABLE_WAKE;
 
+	if (pdev->vendor == PCI_VENDOR_ID_AMD &&
+		pdev->device == 0x1639) {
+		xhci->quirks |= XHCI_COMP_MODE_QUIRK;
+	}
+
 	if (pdev->vendor == PCI_VENDOR_ID_INTEL) {
 		xhci->quirks |= XHCI_LPM_SUPPORT;
 		xhci->quirks |= XHCI_INTEL_HOST;
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-02-03  7:41 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-19  1:48 [PATCH] usb: pci-quirks: add XHCI_COMP_MODE_QUIRK for disabling amd xhci D3cold Prike Liang
2021-01-26 12:30 ` Liang, Prike
2021-01-27 11:33 ` Greg KH
2021-01-27 11:44   ` Greg KH
2021-02-01 14:08     ` Liang, Prike
2021-02-01 14:12       ` Greg KH
2021-02-02 13:48       ` Mathias Nyman
2021-02-03  7:40         ` Liang, Prike

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.