OSDN Git Service

usb-host: workaround libusb bug
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 29 May 2020 07:22:24 +0000 (09:22 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 17 Jun 2020 07:12:33 +0000 (09:12 +0200)
commit54cdfe511219b8051046be55a6e156c4f08ff7ff
tree7254f061e62bcac179c2ea564042a0bb78a3533a
parent9f815e83e983d247a3cd67579d2d9c1765adc644
usb-host: workaround libusb bug

libusb seems to no allways call the completion callback for requests
canceled (which it is supposed to do according to the docs).  So add
a limit to avoid qemu waiting forever.

Tested-by: BALATON Zoltan <balaton@eik.bme.hu>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Message-Id: <20200529072225.3195-1-kraxel@redhat.com>
hw/usb/host-libusb.c