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 <xiaoguang.wu@intel.com>
Acked-by: Yu Wang <yu1.wang@intel.com>
This commit is contained in:
Xiaoguang Wu 2019-02-21 23:31:51 +08:00 committed by wenlingz
parent 1b58076191
commit 7aabea6b06

View File

@ -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;
}