From 7aabea6b06f5150c41e02dcb4c3ee63158c75685 Mon Sep 17 00:00:00 2001 From: Xiaoguang Wu Date: Thu, 21 Feb 2019 23:31:51 +0800 Subject: [PATCH] DM USB: xHCI: fix an error logic in DRD logic The patch (commit id: b39524e) didn't achieve its purpose completely. This patch is used to fix it. Tracked-On: #2557 Signed-off-by: Xiaoguang Wu Acked-by: Yu Wang --- devicemodel/hw/pci/xhci.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/devicemodel/hw/pci/xhci.c b/devicemodel/hw/pci/xhci.c index c8121680a..7207c6548 100644 --- a/devicemodel/hw/pci/xhci.c +++ b/devicemodel/hw/pci/xhci.c @@ -1245,9 +1245,6 @@ pci_xhci_usbcmd_write(struct pci_xhci_vdev *xdev, uint32_t cmd) } } - if (cmd & XHCI_CMD_CRS) - if (xdev->pid == XHCI_PCI_DEVICE_ID_INTEL_APL && - xdev->vid == XHCI_PCI_VENDOR_ID_INTEL) cmd &= ~(XHCI_CMD_CSS | XHCI_CMD_CRS); return cmd; }