mirror of https://gitee.com/openkylin/qemu.git
xhci: fix endpoint interval calculation
Cc: qemu-stable@nongnu.org Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
65d81ed402
commit
ca7162782a
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue