Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Jul 2004 14:36:17 +0200
From:      Bernd Walter <ticso@cicely12.cicely.de>
To:        Alex K <lesha@intercaf.ru>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: USB driver selection algorithm?
Message-ID:  <20040701123615.GA57889@cicely12.cicely.de>
In-Reply-To: <200406301904.44292.lesha@intercaf.ru>
References:  <200406301904.44292.lesha@intercaf.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Jun 30, 2004 at 07:04:44PM +0400, Alex K wrote:
> 
> Hello, everyone!
> 
> As far as I understand drivers for USB devices are selected and attached
> based on USB VendorID and ProductID match. Here I have situation where
> I have 2 diffrent USB devices (cables) which got same Vendor and Device
> IDs, only revision differes.

USB drivers are selected based on the drivers need.
That is usually deviceclass, interfaceclass or vendor/product.

First all drivers are asked if they want the whole device.
If none takes it than all drivers are asked for each interface of the
device - an interface is a functional part of an USB device.
If that also fails the driver is given to ugen as a whole.

> It is mobile phone cables based on PL2303 and PL2303X chipsets.

uplcom takes devices (or maybe interfaces) based on vendor/product ID.

> What approach will you recommend?

What is your problem?

-- 
B.Walter                   BWCT                http://www.bwct.de
bernd@bwct.de                                  info@bwct.de



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040701123615.GA57889>