提交 f90e160b 编写于 作者: G Gerd Hoffmann

Revert "xhci: Fix number of streams allocated when using streams"

This reverts commit d063c311.

"2 << x" is the same as "2 ^ (x + 1)", so the old code is correct.
Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
上级 3d80365b
......@@ -1151,7 +1151,7 @@ static void xhci_reset_streams(XHCIEPContext *epctx)
static void xhci_alloc_streams(XHCIEPContext *epctx, dma_addr_t base)
{
assert(epctx->pstreams == NULL);
epctx->nr_pstreams = 2 << (epctx->max_pstreams + 1);
epctx->nr_pstreams = 2 << epctx->max_pstreams;
epctx->pstreams = xhci_alloc_stream_contexts(epctx->nr_pstreams, base);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册