]> git.proxmox.com Git - qemu.git/commit
ehci: Better detection for qtd-s linked in circles
authorHans de Goede <hdegoede@redhat.com>
Wed, 14 Nov 2012 16:21:38 +0000 (17:21 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Fri, 16 Nov 2012 10:27:32 +0000 (11:27 +0100)
commit601a234731602df7c2bf6d01301c6eec4b1d1a5a
treec5fccb790ca5b05572c540831defcd341d552400
parentff80ce599e0465cc6109a38bd3a8ca1890e88891
ehci: Better detection for qtd-s linked in circles

Windows links interrupt qtd-s in circles, which means that when interrupt
endpoints return USB_RET_ASYNC, combined with the recent
"ehci: Retry to fill the queue while waiting for td completion" patch,
we keep adding the tds to the queue over and over again, as we detect the
circle from fill_queue, but we call it over and over again ...

This patch fixes this by changing the circle detection to also detect
circling into tds already queued up previously.

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