From: Gerd Hoffmann Date: Wed, 28 Aug 2013 09:39:02 +0000 (+0200) Subject: xhci: fix endpoint interval calculation X-Git-Tag: Tizen_Studio_1.3_Release_p2.3.1~655 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=13f8d443d098c92e87cc3da56916d8450f7da837;p=sdk%2Femulator%2Fqemu.git xhci: fix endpoint interval calculation Cc: qemu-stable@nongnu.org Signed-off-by: Gerd Hoffmann (cherry picked from commit ca7162782a293f525633e5816470498dd86a51cf) Signed-off-by: Michael Roth --- diff --git a/hw/usb/hcd-xhci.c b/hw/usb/hcd-xhci.c index 58c88b8a6b..3c0ba8e294 100644 --- a/hw/usb/hcd-xhci.c +++ b/hw/usb/hcd-xhci.c @@ -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,