Re: [PATCH] usb-host: workaround libusb bug

2020-09-02 Thread Gerd Hoffmann
On Wed, Sep 02, 2020 at 03:31:46PM +0100, Alex Bennée wrote: > > Gerd Hoffmann writes: > > >> > +#include > > > >> > +int rc = ioctl(hostfd, USBDEVFS_GET_SPEED, NULL); > >> > >> This (further) breaks a bunch of the Travis jobs - I assume because libusb > >> doesn't > >> always have th

Re: [PATCH] usb-host: workaround libusb bug

2020-09-02 Thread Alex Bennée
Gerd Hoffmann writes: >> > +#include > >> > +int rc = ioctl(hostfd, USBDEVFS_GET_SPEED, NULL); >> >> This (further) breaks a bunch of the Travis jobs - I assume because libusb >> doesn't >> always have this symbol: >> >> ../hw/usb/host-libusb.c:954:32: error: ‘USBDEVFS_GET_SPEED’

Re: [PATCH] usb-host: workaround libusb bug

2020-09-02 Thread Gerd Hoffmann
> > +#include > > +int rc = ioctl(hostfd, USBDEVFS_GET_SPEED, NULL); > > This (further) breaks a bunch of the Travis jobs - I assume because libusb > doesn't > always have this symbol: > > ../hw/usb/host-libusb.c:954:32: error: ‘USBDEVFS_GET_SPEED’ undeclared > (first use in this fu

Re: [PATCH] usb-host: workaround libusb bug

2020-09-01 Thread Alex Bennée
Gerd Hoffmann writes: > libusb_get_device_speed() does not work for > libusb_wrap_sys_device() devices in v1.0.23. > > Buglink: https://bugzilla.redhat.com/show_bug.cgi?id=1871090 > Signed-off-by: Gerd Hoffmann > --- > hw/usb/host-libusb.c | 37 - > 1 file

[PATCH] usb-host: workaround libusb bug

2020-08-24 Thread Gerd Hoffmann
libusb_get_device_speed() does not work for libusb_wrap_sys_device() devices in v1.0.23. Buglink: https://bugzilla.redhat.com/show_bug.cgi?id=1871090 Signed-off-by: Gerd Hoffmann --- hw/usb/host-libusb.c | 37 - 1 file changed, 36 insertions(+), 1 deletion(-)

Re: [PATCH] usb-host: workaround libusb bug

2020-05-29 Thread BALATON Zoltan
On Fri, 29 May 2020, Gerd Hoffmann wrote: libusb seems to no allways call the completion callback for requests Typo: not always call. Regards, BALATON Zoltan canceled (which it is supposed to do according to the docs). So add a limit to avoid qemu waiting forever. Tested-by: BALATON Zoltan

[PATCH] usb-host: workaround libusb bug

2020-05-29 Thread Gerd Hoffmann
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 Signed-off-by: Gerd Hoffmann --- hw/usb/host-libusb.c | 14 ++ 1 file changed, 1