From c9d85cfaea933f8b8f88ffea47c9c2c3d72b4fc7 Mon Sep 17 00:00:00 2001 From: Xiaoguang Wu Date: Sun, 17 Feb 2019 12:38:14 +0800 Subject: [PATCH] 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 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 cf11fb80c..6b655a0e9 100644 --- a/devicemodel/hw/pci/xhci.c +++ b/devicemodel/hw/pci/xhci.c @@ -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 |