xhci: stop on errors

When some error happened we'll have to stop processing the endpoint.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
Gerd Hoffmann 2012-01-17 13:25:13 +01:00
parent f10de44e7e
commit 3c4866e07e
1 changed files with 6 additions and 2 deletions

View File

@ -1721,10 +1721,14 @@ static void xhci_kick_ep(XHCIState *xhci, unsigned int slotid, unsigned int epid
} }
} }
if (epctx->state == EP_HALTED) {
DPRINTF("xhci: ep halted, stopping schedule\n");
break;
}
/* /*
* Qemu usb can't handle multiple in-flight xfers. * Qemu usb can't handle multiple in-flight xfers.
* Also xfers might be finished here already, * Stop here for now.
* possibly with an error. Stop here for now.
*/ */
break; break;
} }