]> git.proxmox.com Git - qemu.git/commitdiff
xhci: flush endpoint context unconditinally
authorGerd Hoffmann <kraxel@redhat.com>
Wed, 24 Oct 2012 08:14:16 +0000 (10:14 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 25 Oct 2012 12:35:47 +0000 (14:35 +0200)
Not updating the endpoint context in case the state didn't change is
wrong.  Other context fields might have changed, for example the
dequeue pointer in response to a CR_SET_TR_DEQUEUE command.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/usb/hcd-xhci.c

index 8345fa34a2458d98b913c6ba52237a7c5c5b9de7..d8d1226a5ba1fcc8c7520b064dfb11e704a9a112 100644 (file)
@@ -1009,9 +1009,6 @@ static void xhci_set_ep_state(XHCIState *xhci, XHCIEPContext *epctx,
                               uint32_t state)
 {
     uint32_t ctx[5];
-    if (epctx->state == state) {
-        return;
-    }
 
     pci_dma_read(&xhci->pci_dev, epctx->pctx, ctx, sizeof(ctx));
     ctx[0] &= ~EP_STATE_MASK;