Skip to content

Commit

Permalink
xhci: fix endpoint interval calculation
Browse files Browse the repository at this point in the history
Cc: qemu-stable@nongnu.org
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
  • Loading branch information
kraxel committed Sep 2, 2013
1 parent 65d81ed commit ca71627
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hw/usb/hcd-xhci.c
Expand Up @@ -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,
Expand Down

0 comments on commit ca71627

Please sign in to comment.