render / rpms / qemu

Forked from rpms/qemu 7 months ago
Clone

Blame 0011-xhci-fix-endpoint-interval-calculation.patch

298366
From c0a5eb81b43e56569cfdb9c86fd78930b2765b96 Mon Sep 17 00:00:00 2001
298366
From: Gerd Hoffmann <kraxel@redhat.com>
298366
Date: Wed, 28 Aug 2013 11:39:02 +0200
298366
Subject: [PATCH] xhci: fix endpoint interval calculation
298366
298366
Cc: qemu-stable@nongnu.org
298366
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
298366
(cherry picked from commit ca7162782a293f525633e5816470498dd86a51cf)
298366
298366
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
298366
---
298366
 hw/usb/hcd-xhci.c | 2 +-
298366
 1 file changed, 1 insertion(+), 1 deletion(-)
298366
298366
diff --git a/hw/usb/hcd-xhci.c b/hw/usb/hcd-xhci.c
298366
index 58c88b8..3c0ba8e 100644
298366
--- a/hw/usb/hcd-xhci.c
298366
+++ b/hw/usb/hcd-xhci.c
298366
@@ -1257,7 +1257,7 @@ static void xhci_init_epctx(XHCIEPContext *epctx,
298366
         epctx->ring.ccs = ctx[2] & 1;
298366
     }
298366
 
298366
-    epctx->interval = 1 << (ctx[0] >> 16) & 0xff;
298366
+    epctx->interval = 1 << ((ctx[0] >> 16) & 0xff);
298366
 }
298366
 
298366
 static TRBCCode xhci_enable_ep(XHCIState *xhci, unsigned int slotid,