]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/blobdiff - hw/usb/hcd-xhci.c
xhci: fix endpoint interval calculation
[lisovros/qemu_apohw.git] / hw / usb / hcd-xhci.c
index 4d693bcf2ff8e68f10ad2f0f9414e54aff8df7e9..38269793b3a004c43d118b76e0e1197ae00ff31c 100644 (file)
@@ -1274,7 +1274,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,