Received: from eggs.gnu.org ([2001:4830:134:3::10]:35869) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VGRCf-0006QL-W0 for qemu-devel@nongnu.org; Mon, 02 Sep 2013 06:17:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VGRCY-0007OS-Po for qemu-devel@nongnu.org; Mon, 02 Sep 2013 06:17:49 -0400 From: Gerd Hoffmann Date: Mon, 2 Sep 2013 12:17:28 +0200 Message-Id: <1378117055-29620-5-git-send-email-kraxel@redhat.com> In-Reply-To: <1378117055-29620-1-git-send-email-kraxel@redhat.com> References: <1378117055-29620-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PATCH 04/11] xhci: fix endpoint interval calculation List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Gerd Hoffmann , qemu-stable@nongnu.org Cc: qemu-stable@nongnu.org Signed-off-by: Gerd Hoffmann --- hw/usb/hcd-xhci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/usb/hcd-xhci.c b/hw/usb/hcd-xhci.c index 4d693bc..3826979 100644 --- a/hw/usb/hcd-xhci.c +++ b/hw/usb/hcd-xhci.c @@ -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, -- 1.8.3.1