[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 4/7] xhci iso: fix time calculation
From: |
Gerd Hoffmann |
Subject: |
[Qemu-devel] [PATCH 4/7] xhci iso: fix time calculation |
Date: |
Tue, 18 Feb 2014 16:50:51 +0100 |
Frameid specifies frames not microframes, so we
need to shift it to get the microframe index.
Signed-off-by: Gerd Hoffmann <address@hidden>
---
hw/usb/hcd-xhci.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/hw/usb/hcd-xhci.c b/hw/usb/hcd-xhci.c
index 8d9cfe8..706cdc7 100644
--- a/hw/usb/hcd-xhci.c
+++ b/hw/usb/hcd-xhci.c
@@ -1974,8 +1974,8 @@ static void xhci_calc_iso_kick(XHCIState *xhci,
XHCITransfer *xfer,
xfer->mfindex_kick = asap;
}
} else {
- xfer->mfindex_kick = (xfer->trbs[0].control >> TRB_TR_FRAMEID_SHIFT)
- & TRB_TR_FRAMEID_MASK;
+ xfer->mfindex_kick = ((xfer->trbs[0].control >> TRB_TR_FRAMEID_SHIFT)
+ & TRB_TR_FRAMEID_MASK) << 3;
xfer->mfindex_kick |= mfindex & ~0x3fff;
if (xfer->mfindex_kick < mfindex) {
xfer->mfindex_kick += 0x4000;
--
1.8.3.1
- [Qemu-devel] [PULL 0/7] usb patch queue, Gerd Hoffmann, 2014/02/18
- [Qemu-devel] [PATCH 4/7] xhci iso: fix time calculation,
Gerd Hoffmann <=
- [Qemu-devel] [PATCH 2/7] xhci: fix overflow in usb_xhci_post_load, Gerd Hoffmann, 2014/02/18
- [Qemu-devel] [PATCH 7/7] xhci: use DPRINTF() instead of fprintf(stderr, ...), Gerd Hoffmann, 2014/02/18
- [Qemu-devel] [PATCH 1/7] usb: Remove magic constants from device bmAttributes, Gerd Hoffmann, 2014/02/18
- [Qemu-devel] [PATCH 3/7] uhci: invalidate queue on device address changes, Gerd Hoffmann, 2014/02/18
- [Qemu-devel] [PATCH 5/7] xhci iso: allow for some latency, Gerd Hoffmann, 2014/02/18
- [Qemu-devel] [PATCH 6/7] xhci: switch debug printf to tracepoint, Gerd Hoffmann, 2014/02/18
- Re: [Qemu-devel] [PULL 0/7] usb patch queue, Peter Maydell, 2014/02/20