]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/commitdiff
xhci: fix endpoint interval calculation
authorGerd Hoffmann <kraxel@redhat.com>
Wed, 28 Aug 2013 09:39:02 +0000 (11:39 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Wed, 25 Sep 2013 00:51:32 +0000 (19:51 -0500)
Cc: qemu-stable@nongnu.org
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
(cherry picked from commit ca7162782a293f525633e5816470498dd86a51cf)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/usb/hcd-xhci.c

index 58c88b8a6bb8186e361f2d4a9a7558d7ee3b6e5d..3c0ba8e294656b28a4c5f013164781a4e5557d39 100644 (file)
@@ -1257,7 +1257,7 @@ static void xhci_init_epctx(XHCIEPContext *epctx,
         epctx->ring.ccs = ctx[2] & 1;
     }
 
-    epctx->interval = 1 << (ctx[0] >> 16) & 0xff;
+    epctx->interval = 1 << ((ctx[0] >> 16) & 0xff);
 }
 
 static TRBCCode xhci_enable_ep(XHCIState *xhci, unsigned int slotid,