xhci: handle USB_RET_NAK
commit7c605a23b2c7606f5f06b7d83d8927b1dc111478
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 20 Jan 2012 12:29:16 +0000 (20 13:29 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Fri, 10 Feb 2012 11:16:31 +0000 (10 12:16 +0100)
treec3bbe57dba897d44f861f866120a50dfb6fce561
parent8c735e431d384663137a709c8207f4ada3146205
xhci: handle USB_RET_NAK

Add a field to XHCITransfer to correctly keep track of NAK'ed usb
packets.  Retry transfers when the endpoint is kicked again.  Implement
wakeup_endpoint bus op so we can kick the endpoint when needed.

With this patch applied the emulated hid devices are working correctly
when hooked up to xhci.  usb-tabled without polling, yay!

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/usb-xhci.c