xhci: Fix number of streams allocated when using streams
commitd063c3112c4cd23a479ee18720c2bd119da2d315
authorHans de Goede <hdegoede@redhat.com>
Mon, 16 Sep 2013 15:04:27 +0000 (16 17:04 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 19 Sep 2013 09:28:40 +0000 (19 11:28 +0200)
treefd3348bf7caf1b32b4b718bc857419b259636f8b
parentb5613fdcb0e03d47852582c252942512f050b5b6
xhci: Fix number of streams allocated when using streams

According to the xhci spec the total number of streams is
2 ^ (MaxPStreams + 1), and this is also how the Linux xhci driver
uses this field.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/usb/hcd-xhci.c