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

xuyongjian hustxyj at gmail.com
Thu Nov 27 23:42:24 PST 2014


Hi,
  When is it going to be done?

2014-11-27 17:53 GMT+08:00 Christophe Fergeau <cfergeau at redhat.com>:

> 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
>



-- 
Best Regards!
----------
许永健   湖北省智能互联网中心
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20141128/1c143987/attachment.html>


More information about the Spice-devel mailing list