Re: [Qemu-devel] [PATCH 03/13] usb-host-libusb: Detach kernel drivers earlier

2013-10-09 Thread Hans de Goede
Hi, On 10/09/2013 03:35 PM, Gerd Hoffmann wrote: Hi, Assuming we have a device with multiple configurations, each configuration has a different set of interfaces, guest switches from one config to another. Do we correctly unbind kernel / claim interfaces then? Yes we still have a usb_hos

Re: [Qemu-devel] [PATCH 03/13] usb-host-libusb: Detach kernel drivers earlier

2013-10-09 Thread Gerd Hoffmann
Hi, > > Assuming we have a device with multiple configurations, each > > configuration has a different set of interfaces, guest switches from one > > config to another. Do we correctly unbind kernel / claim interfaces > > then? > > Yes we still have a usb_host_detach_kernel() call in the begin

Re: [Qemu-devel] [PATCH 03/13] usb-host-libusb: Detach kernel drivers earlier

2013-10-09 Thread Hans de Goede
Hi, On 10/09/2013 10:55 AM, Gerd Hoffmann wrote: On Di, 2013-10-08 at 21:58 +0200, Hans de Goede wrote: If we detach the kernel drivers on the first set_config, then they will be still attached when the device gets its initial reset. Causing the drivers to re-initialize the device after the res

Re: [Qemu-devel] [PATCH 03/13] usb-host-libusb: Detach kernel drivers earlier

2013-10-09 Thread Gerd Hoffmann
On Di, 2013-10-08 at 21:58 +0200, Hans de Goede wrote: > If we detach the kernel drivers on the first set_config, then they will > be still attached when the device gets its initial reset. Causing the drivers > to re-initialize the device after the reset, dirtying the device state. > @@ -1051,7 +1

[Qemu-devel] [PATCH 03/13] usb-host-libusb: Detach kernel drivers earlier

2013-10-08 Thread Hans de Goede
If we detach the kernel drivers on the first set_config, then they will be still attached when the device gets its initial reset. Causing the drivers to re-initialize the device after the reset, dirtying the device state. Signed-off-by: Hans de Goede --- hw/usb/host-libusb.c | 7 +-- 1 file