DM USB: xHCI: fix a logic error in 'pci_xhci_portregs_write'

The function 'pci_xhci_portregs_write' always set CCS bit in
Port Status and Control (PORTSC) register when there is
pci_xhci_dev_emu instance existed. This is not right and this
patch is used to fix it.

Tracked-On: #2576
Signed-off-by: Conghui Chen <conghui.chen@intel.com>
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-17 12:38:14 +08:00 committed by wenlingz
parent 5f36580190
commit c9d85cfaea

View File

@ -1336,9 +1336,6 @@ pci_xhci_portregs_write(struct pci_xhci_vdev *xdev,
portsc &= XHCI_PS_PED | XHCI_PS_PLS_MASK |
XHCI_PS_SPEED_MASK | XHCI_PS_PIC_MASK;
if (XHCI_DEVINST_PTR(xdev, port))
p->portsc |= XHCI_PS_CCS;
portsc |= (value &
~(XHCI_PS_OCA |
XHCI_PS_PR |