[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 03/13] usb-host-libusb: Detach kernel drivers ea
From: |
Gerd Hoffmann |
Subject: |
Re: [Qemu-devel] [PATCH 03/13] usb-host-libusb: Detach kernel drivers earlier |
Date: |
Wed, 09 Oct 2013 15:35:23 +0200 |
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 beginning
> of usb_host_claim_interfaces(), which gets run on the new interfaces
> immediately after the libusb_set_configuration call.
Ok, good.
> Doing a detach_kernel after a set_config has always been necessary,
> since the kernel will automatically bind drivers to the new interfaces
> if the set_config succeeds.
Is there some way to avoid the kernel's autobind in the first place btw?
cheers,
Gerd
[Qemu-devel] [PATCH 04/13] usb-hcd-xhci: Remove unused sstreamsm member from XHCIStreamContext, Hans de Goede, 2013/10/08
[Qemu-devel] [PATCH 05/13] usb-hcd-xhci: Remove unused cancelled member from XHCITransfer, Hans de Goede, 2013/10/08
[Qemu-devel] [PATCH 06/13] usb-hcd-xhci: Report completion of active transfer with CC_STOPPED on ep stop, Hans de Goede, 2013/10/08
[Qemu-devel] [PATCH 07/13] usb-hcd-xhci: Update endpoint context dequeue pointer for streams too, Hans de Goede, 2013/10/08
[Qemu-devel] [PATCH 08/13] usb: Add max_streams attribute to endpoint info, Hans de Goede, 2013/10/08
[Qemu-devel] [PATCH 09/13] usb: Add usb_device_alloc/free_streams, Hans de Goede, 2013/10/08
[Qemu-devel] [PATCH 10/13] xhci: Call usb_device_alloc/free_streams, Hans de Goede, 2013/10/08
[Qemu-devel] [PATCH 11/13] usb-host-libusb: Fill in endpoint max_streams when available, Hans de Goede, 2013/10/08
[Qemu-devel] [PATCH 12/13] usb-host-libusb: Add alloc / free streams ops, Hans de Goede, 2013/10/08