[Spice-devel] How to support multiple devices(with same vid & pid)

Christophe Fergeau cfergeau at redhat.com
Thu Nov 27 01:53:59 PST 2014


Hey,

On Tue, Nov 25, 2014 at 07:24:32PM +0800, xuyongjian wrote:
> Hi elmarco:
> 
> I met a problem with usbclerk.
> First, I plugged in two same usb device. Then I used usbclerk to change the
> driver to winusb.
> I sent only one message which caused both the drivers changed.
> After that, I use usbclerk to remove the winusb driver. The first device
> driver could be restored properly, but the second one was not so lucky:
>     if (!SetupDiBuildDriverInfoList(devs, dev_info, SPDIT_CLASSDRIVER)) {
>         vd_printf("Cannot build driver info list: %ld", GetLastError());
>         return false;
>     }
> SetupDiBuildDriverInfoList returned 2 and the driver didn't change.
> 
> Another scenario:
> I plugged in one device, and changed the driver to winusb. Then the second
> one plugged in. The usbclerk did not work well. Since it found there was
> already a device with the same vid&pid installed with winusb.
> 
> Do you have any solutions?

I think this is a known limitation of USBClerk, a new USB filter driver
is in the work which should address this limitation.

Christophe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20141127/1bfcff1e/attachment.sig>


More information about the Spice-devel mailing list