提交 2fdfd5b8 编写于 作者: L LeoLiu-oc 提交者: Cheng Jian

xhci: fix issue with resume from system Sx state

zhaoxin inclusion
category: feature
bugzilla: https://bugzilla.openeuler.org/show_bug.cgi?id=19
CVE: NA

----------------------------------------------------------------

On Zhaoxin ZX-100 project, xHCI can't work normally after resume
from system Sx state. To fix this issue, when resume from system
sx state, reinitialize xHCI instead of restore.

The patch is scheduled to be submitted to the kernel mainline in 2021.
Signed-off-by: NLeoLiu-oc <LeoLiu-oc@zhaoxin.com>
Reviewed-by: NHanjun Guo <guohanjun@huawei.com>
Reviewed-by: NLeoLiu-oc <LeoLiu-oc@zhaoxin.com>
Signed-off-by: NCheng Jian <cj.chengjian@huawei.com>
上级 abe087f3
...@@ -247,6 +247,9 @@ static void xhci_pci_quirks(struct device *dev, struct xhci_hcd *xhci) ...@@ -247,6 +247,9 @@ static void xhci_pci_quirks(struct device *dev, struct xhci_hcd *xhci)
if (pdev->vendor == PCI_VENDOR_ID_TI && pdev->device == 0x8241) if (pdev->vendor == PCI_VENDOR_ID_TI && pdev->device == 0x8241)
xhci->quirks |= XHCI_LIMIT_ENDPOINT_INTERVAL_7; xhci->quirks |= XHCI_LIMIT_ENDPOINT_INTERVAL_7;
if (pdev->vendor == PCI_VENDOR_ID_ZHAOXIN && pdev->device == 0x9202)
xhci->quirks |= XHCI_RESET_ON_RESUME;
if ((pdev->vendor == PCI_VENDOR_ID_BROADCOM || if ((pdev->vendor == PCI_VENDOR_ID_BROADCOM ||
pdev->vendor == PCI_VENDOR_ID_CAVIUM) && pdev->vendor == PCI_VENDOR_ID_CAVIUM) &&
pdev->device == 0x9026) pdev->device == 0x9026)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册