usb-hcd-xhci: Update endpoint context dequeue pointer for streams too
authorHans de Goede <hdegoede@redhat.com>
Tue, 8 Oct 2013 19:58:12 +0000 (21:58 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 22 Oct 2013 14:28:49 +0000 (16:28 +0200)
commitc90daa1c109348099088c1cc954c1e9f3392ae03
treeb1ab19d1d31d570ff5637c7db6dfa032fd9d0275
parent582d6f4aba0ff24604a82b48aee2db17b100d4b4
usb-hcd-xhci: Update endpoint context dequeue pointer for streams too

With streams the endpoint context dequeue pointer should point to the
dequeue value for the currently active stream.

At least Linux guests expect it to point to value set by an set_ep_dequeue
upon completion of the set_ep_dequeue (before kicking the ep).

Otherwise the Linux kernel will complain (and things won't work):

xhci_hcd 0000:00:05.0: Mismatch between completed Set TR Deq Ptr command & xHCI internal state.
xhci_hcd 0000:00:05.0: ep deq seg = ffff8800366f0880, deq ptr = ffff8800366ec010

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