From e188e1f24599084906b2239bd03f2c18f48fe9c7 Mon Sep 17 00:00:00 2001 From: Xiaoguang Wu Date: Wed, 17 Jul 2019 17:17:28 +0800 Subject: [PATCH] DM USB: xHCI: fix an error in PORTSC emulation When DM receives the Disable Slot command, according to xHCI spec, the PP bit in PORTSC register should not be cleared. Tracked-On: #3486 Signed-off-by: Xiaoguang Wu Acked-by: Yu Wang --- devicemodel/hw/pci/xhci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devicemodel/hw/pci/xhci.c b/devicemodel/hw/pci/xhci.c index 4245abaef..1aaae15b2 100644 --- a/devicemodel/hw/pci/xhci.c +++ b/devicemodel/hw/pci/xhci.c @@ -1801,7 +1801,7 @@ pci_xhci_cmd_disable_slot(struct pci_xhci_vdev *xdev, uint32_t slot) if (i <= XHCI_MAX_DEVS && XHCI_PORTREG_PTR(xdev, i)) { XHCI_PORTREG_PTR(xdev, i)->portsc &= ~(XHCI_PS_CSC | - XHCI_PS_CCS | XHCI_PS_PED | XHCI_PS_PP); + XHCI_PS_CCS | XHCI_PS_PED); udev = dev->dev_instance;