Subject: [PATCH 01/25] xhci: fix endpoint interval calculation

From: Gerd Hoffmann <[email-masked]>
Date: Thu, 12 Sep 2013 09:39:29 +0200

RH-Author: Gerd Hoffmann <[email-masked]>
Message-id: <[email-masked]>
Patchwork-id: 54338
O-Subject: [RHEL-7 qemu-kvm PATCH 1/4] xhci: fix endpoint interval calculation
Bugzilla: 1001604
RH-Acked-by: Paolo Bonzini <[email-masked]>
RH-Acked-by: Hans de Goede <[email-masked]>
RH-Acked-by: Miroslav Rezanina <[email-masked]>

Cc: [email-masked]
Signed-off-by: Gerd Hoffmann <[email-masked]>
(cherry picked from commit ca7162782a293f525633e5816470498dd86a51cf)
---
 hw/usb/hcd-xhci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Signed-off-by: Miroslav Rezanina <[email-masked]>
---
 hw/usb/hcd-xhci.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/hw/usb/hcd-xhci.c b/hw/usb/hcd-xhci.c
index 233f3b6..55bcfc4 100644
--- a/hw/usb/hcd-xhci.c
+++ b/hw/usb/hcd-xhci.c
@@ -1241,7 +1241,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,
-- 
1.7.1