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

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.
* Also xfers might be finished here already,
* possibly with an error. Stop here for now.
* Stop here for now.
*/
break;
}