[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20210504045739.3786551-1-Sandeep.Singh@amd.com>
Date: Tue, 4 May 2021 10:27:39 +0530
From: Sandeep Singh <Sandeep.Singh@....com>
To: mathias.nyman@...el.com, gregkh@...uxfoundation.org,
linux-usb@...r.kernel.org, linux-kernel@...r.kernel.org
Cc: Shyam-sundar.S-k@....com, Nehal-bakulchandra.Shah@....com,
Sandeep Singh <sandeep.singh@....com>
Subject: [PATCH] xhci:Add reset resume quirk for AMD xhci controller.
From: Sandeep Singh <sandeep.singh@....com>
One of AMD xhci controller require reset on resume.
Occasionally AMD xhci controller does not respond to
Stop endpoint command.
Once the issue happens controller goes into bad state
and in that case controller needs to be reset.
Signed-off-by: Sandeep Singh <sandeep.singh@....com>
---
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 84da8406d5b4..c8c468271767 100644
--- a/drivers/usb/host/xhci-pci.c
+++ b/drivers/usb/host/xhci-pci.c
@@ -165,8 +165,10 @@ static void xhci_pci_quirks(struct device *dev, struct xhci_hcd *xhci)
(pdev->device == 0x15e0 || pdev->device == 0x15e1))
xhci->quirks |= XHCI_SNPS_BROKEN_SUSPEND;
- if (pdev->vendor == PCI_VENDOR_ID_AMD && pdev->device == 0x15e5)
+ if (pdev->vendor == PCI_VENDOR_ID_AMD && pdev->device == 0x15e5) {
xhci->quirks |= XHCI_DISABLE_SPARSE;
+ xhci->quirks |= XHCI_RESET_ON_RESUME;
+ }
if (pdev->vendor == PCI_VENDOR_ID_AMD)
xhci->quirks |= XHCI_TRUST_TX_LENGTH;
--
2.25.1
Powered by blists - more mailing lists