mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-24 14:33:38 +00:00
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:
parent
5f36580190
commit
c9d85cfaea
@ -1336,9 +1336,6 @@ pci_xhci_portregs_write(struct pci_xhci_vdev *xdev,
|
|||||||
portsc &= XHCI_PS_PED | XHCI_PS_PLS_MASK |
|
portsc &= XHCI_PS_PED | XHCI_PS_PLS_MASK |
|
||||||
XHCI_PS_SPEED_MASK | XHCI_PS_PIC_MASK;
|
XHCI_PS_SPEED_MASK | XHCI_PS_PIC_MASK;
|
||||||
|
|
||||||
if (XHCI_DEVINST_PTR(xdev, port))
|
|
||||||
p->portsc |= XHCI_PS_CCS;
|
|
||||||
|
|
||||||
portsc |= (value &
|
portsc |= (value &
|
||||||
~(XHCI_PS_OCA |
|
~(XHCI_PS_OCA |
|
||||||
XHCI_PS_PR |
|
XHCI_PS_PR |
|
||||||
|
Loading…
Reference in New Issue
Block a user