[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-usb-users
Subject:    Re: [Linux-usb-users] why is usb device recognized?
From:       "Stephen J. Gowdy" <gowdy () slac ! stanford ! edu>
Date:       2004-10-29 15:52:07
Message-ID: Pine.LNX.4.58.0410290850220.5092 () antonia ! sgowdy ! org
[Download RAW message or body]

It is the bInterfaceClass, not the bDeviceSubClass by the looks of it.

On Fri, 29 Oct 2004, Jason Keltz wrote:

> Hi Stephen,
>
> If you mean the field marked "bDeviceClass" in
> /lib/modules/2.4.26/modules.usbmap, there are no entries for usb-storage
> that are not all 0x0000 there.  If you mean somewhere else, let me know so
> I can check.
>
> Thanks..
>
> Jason.
>
>
> On Fri, 29 Oct 2004, Stephen J. Gowdy wrote:
>
> > THere should be some class matches there too, not only specfic device
> > matches.
> >
> > On Fri, 29 Oct 2004, Jason Keltz wrote:
> >
> > > Hi.
> > >
> > > I have what may seem like a strange question! I have a USB key -- a small
> > > 128 MB SANdisk Cruzer mini. I insert the key into my machine, and the
> > > device is recognized. At least I see:
> > >
> > > hub.c: new USB device 00:1d.7-5, assigned address 6
> > > usb.c: USB device 6 (vend/prod 0x781/0x7103) is not claimed by any active
> > > driver.
> > > Initializing USB Mass Storage driver...
> > > usb.c: registered new driver usb-storage
> > > scsi0 : SCSI emulation for USB Mass Storage devices
> > > Vendor: Generic Model: STORAGE DEVICE Rev: 0026
> > > Type: Direct-Access ANSI SCSI revision: 02
> > > Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0
> > > SCSI device sda: 256000 512-byte hdwr sectors (131 MB)
> > > sda: Write Protect is off
> > > sda: sda1
> > > WARNING: USB Mass Storage data integrity not assured
> > > USB Mass Storage device found at 6
> > > USB Mass Storage support registered.
> > >
> > > ----
> > >
> > > What I don't understand is *why* the USB Mass Storage driver loads.
> > >
> > > The vendor id is: 0x781, the product id: 0x7103, the device id: 26
> > >
> > > I'm running a 2.4.26 kernel, and if I look in lib
> > > modules/2.4.26/modules.usbmap, there are
> > > four entries:
> > > usb-storage 0x000f 0x0781 0x0001 0x0200 0x0200 (0x000.....)
> > > usb-storage 0x000f 0x0781 0x0002 0x0009 0x0009 (0x000.....)
> > > usb-storage 0x000f 0x0781 0x0100 0x0100 0x0100 (0x000.....)
> > > usb-storage 0x000f 0x0781 0x0200 0x0000 0x9999 (0x000....)
> > >
> > > ... not one of them matches my product.
> > >
> > > usb.handmap or usb.usermap in /etc/hotplug do not contain entries for the
> > > device.
> > > Even usb.distmap which isn't used for the 2.4 series of kernels contains
> > > the same lines as the ones that come with the module.
> > >
> > > Thanks in advance!
> > >
> > > Jason Keltz
> > > jas@cs.yorku.ca
> > >
> > >
> > > -------------------------------------------------------
> > > This Newsletter Sponsored by: Macrovision
> > > For reliable Linux application installations, use the industry's leading
> > > setup authoring tool, InstallShield X. Learn more and evaluate
> > > today. http://clk.atdmt.com/MSI/go/ins0030000001msi/direct/01/
> > > _______________________________________________
> > > Linux-usb-users@lists.sourceforge.net
> > > To unsubscribe, use the last form field at:
> > > https://lists.sourceforge.net/lists/listinfo/linux-usb-users
> > >
> >
> > --
> >  /------------------------------------+-------------------------\
> > |Stephen J. Gowdy                     | SLAC, MailStop 34,       |
> > |http://www.slac.stanford.edu/~gowdy/ | 2575 Sand Hill Road,     |
> > |http://calendar.yahoo.com/gowdy      | Menlo Park CA 94025, USA |
> > |EMail: gowdy@slac.stanford.edu       | Tel: +1 650 926 3144     |
> >  \------------------------------------+-------------------------/
> >
>

--
 /------------------------------------+-------------------------\
|Stephen J. Gowdy                     | SLAC, MailStop 34,       |
|http://www.slac.stanford.edu/~gowdy/ | 2575 Sand Hill Road,     |
|http://calendar.yahoo.com/gowdy      | Menlo Park CA 94025, USA |
|EMail: gowdy@slac.stanford.edu       | Tel: +1 650 926 3144     |
 \------------------------------------+-------------------------/


-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
Linux-usb-users@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic