Re: hot to distinquish between 2 USB devices with same vendor and product id

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Mar 03, 2009 at 11:55:24AM +0100, Belisko Marek wrote:
> Hi,
> 
> On Tue, Mar 3, 2009 at 7:29 AM, Greg KH <greg@xxxxxxxxx> wrote:
> > On Mon, Mar 02, 2009 at 02:36:55PM +0100, Belisko Marek wrote:
> >> Hi,
> >>
> >> My problem is that during init I should setup camera with different
> >> init data stream but cameras
> >> can have same vendor and product id (but different init data should be sent).
> >>
> >> Exist some way to distinquish between 2 USB devices with same vendor
> >> and product id?
> >> Don't have bcdDevice parameter.
> >
> > How do you know which device to send which init data to in the first
> > place?
> I'm trying to modify existing driver (not in main tree) for nw8xx chip based
> webcams(http://nw802.sourceforge.net/news.html). Driver works when it
> was compiled out of tree but first you should manually replace file
> with init data according webcam model and then compile.

Ick, that's a mess.

> I think about possibility to make it automatic, without manual copy.

Yes, that would be good.

> I know vendorid and product id ad during probe I think I can retrieve
> it and use.  That was originally idea how to distiquish between
> cameras. But then problem come with same vendorid and productid. In
> this case driver wouldn't work properly because not correct init data
> sequence will be send to usb device.

But if the device has the exact same descriptor, that would mean they
are the same type of devices, right?  If not, then the manufacturer
really messed up.

good luck,

greg k-h

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux