提交 c0a5eb81 编写于 作者: G Gerd Hoffmann 提交者: Michael Roth

xhci: fix endpoint interval calculation

Cc: qemu-stable@nongnu.org
Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
(cherry picked from commit ca716278)
Signed-off-by: NMichael Roth <mdroth@linux.vnet.ibm.com>
上级 358bb0da
......@@ -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,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册