usb-storage doesn't alter the INQUIRY data like that. We do fake INQUIRY data for some devices that don't support the INQUIRY command, but yours apparently do -- they just return relatively useless strings.
This 'generic' string is coming from the device itself, I'm afraid.
Matt
On Mon, Aug 02, 2004 at 07:04:56PM -0400, Spiros Papadimitriou wrote:
> Hello!
>
> I have three JumpDrives and on two of these, usb-storage sets the SCSI
> vendor/model strings to "Generic / STORAGE DEVICE" with the result that
> updfstab fails to create the relevant /mnt/flash entries. Of course,
> manually mounting the devices always worked fine.
>
> Actually, today I got my third JumpDrive and I'm happy to say that I just
> plugged it in and everything worked. I'm running FC2 with kernel
> 2.6.6-1.435.2.3.
>
> Any idea why the usb-storage driver does not like the two other
> JumpDrives? Quickly glancing the kernel source, it seems that this should
> be happening in fill_inquiry_response(), if the driver thinks the device
> is not connected.
>
> I've attached /proc/scsi/scsi and lspci -v outputs. I'd be happy to
> provide any further info to resolve this.
>
> In the meantime, is there any "user-space" workaround for this, e.g., to
> force the SCSI drivers to (re)do the bus inquiries? Any suggestions would
> be appreciated.
>
> Thanks!
> Spiros
>
> ==========================================================================
> Lexar JumpDrive Sport 512Mb (model JDSP512-04-500C):
> --------------------------------------------------------------------------
>
> /proc/scsi/scsi:
> Attached devices:
> Host: scsi0 Channel: 00 Id: 00 Lun: 00
> Vendor: LEXAR Model: JUMPDRIVE SPORT Rev: 2000
> Type: Direct-Access ANSI SCSI revision: 02
>
> lsusb -v:
> Bus 001 Device 002: ID 05dc:a400 Lexar Media, Inc.
> Device Descriptor:
> bLength 18
> bDescriptorType 1
> bcdUSB 2.00
> bDeviceClass 0 (Defined at Interface level)
> bDeviceSubClass 0
> bDeviceProtocol 0
> bMaxPacketSize0 64
> idVendor 0x05dc Lexar Media, Inc.
> idProduct 0xa400
> bcdDevice 20.00
> iManufacturer 1 LEXAR MEDIA
> iProduct 2 JUMPDRIVE SPORT
> iSerial 3 33000001226000006320
> bNumConfigurations 1
> Configuration Descriptor:
> bLength 9
> bDescriptorType 2
> wTotalLength 32
> bNumInterfaces 1
> bConfigurationValue 1
> iConfiguration 0
> bmAttributes 0x80
> MaxPower 100mA
> Interface Descriptor:
> bLength 9
> bDescriptorType 4
> bInterfaceNumber 0
> bAlternateSetting 0
> bNumEndpoints 2
> bInterfaceClass 8 Mass Storage
> bInterfaceSubClass 6 SCSI
> bInterfaceProtocol 80 Bulk (Zip)
> iInterface 0
> Endpoint Descriptor:
> bLength 7
> bDescriptorType 5
> bEndpointAddress 0x81 EP 1 IN
> bmAttributes 2
> Transfer Type Bulk
> Synch Type none
> Usage Type Data
> wMaxPacketSize 0x0200 bytes 512 once
> bInterval 255
> Endpoint Descriptor:
> bLength 7
> bDescriptorType 5
> bEndpointAddress 0x02 EP 2 OUT
> bmAttributes 2
> Transfer Type Bulk
> Synch Type none
> Usage Type Data
> wMaxPacketSize 0x0200 bytes 512 once
> bInterval 255
> Language IDs: (length=4)
> 0409 English(US)
> ==========================================================================
>
>
> ==========================================================================
> Lexar JumpDrive Elite 256MB (model JDE256-04-500)
> --------------------------------------------------------------------------
>
> /proc/scsi/scsi:
> Attached devices:
> Host: scsi1 Channel: 00 Id: 00 Lun: 00
> Vendor: Generic Model: STORAGE DEVICE Rev: 1.25
> Type: Direct-Access ANSI SCSI revision: 02
>
> lsusb -v:
> Bus 001 Device 003: ID 05dc:a300 Lexar Media, Inc.
> Device Descriptor:
> bLength 18
> bDescriptorType 1
> bcdUSB 2.00
> bDeviceClass 0 (Defined at Interface level)
> bDeviceSubClass 0
> bDeviceProtocol 0
> bMaxPacketSize0 64
> idVendor 0x05dc Lexar Media, Inc.
> idProduct 0xa300
> bcdDevice 1.25
> iManufacturer 2 LEXAR MEDIA
> iProduct 3 JUMPDRIVE2
> iSerial 4 0000000309
> bNumConfigurations 1
> Configuration Descriptor:
> bLength 9
> bDescriptorType 2
> wTotalLength 32
> bNumInterfaces 1
> bConfigurationValue 1
> iConfiguration 0
> bmAttributes 0x80
> MaxPower 70mA
> Interface Descriptor:
> bLength 9
> bDescriptorType 4
> bInterfaceNumber 0
> bAlternateSetting 0
> bNumEndpoints 2
> bInterfaceClass 8 Mass Storage
> bInterfaceSubClass 6 SCSI
> bInterfaceProtocol 80 Bulk (Zip)
> iInterface 5 Bulk-Only Device
> Endpoint Descriptor:
> bLength 7
> bDescriptorType 5
> bEndpointAddress 0x81 EP 1 IN
> bmAttributes 2
> Transfer Type Bulk
> Synch Type none
> Usage Type Data
> wMaxPacketSize 0x0200 bytes 512 once
> bInterval 0
> Endpoint Descriptor:
> bLength 7
> bDescriptorType 5
> bEndpointAddress 0x02 EP 2 OUT
> bmAttributes 2
> Transfer Type Bulk
> Synch Type none
> Usage Type Data
> wMaxPacketSize 0x0200 bytes 512 once
> bInterval 0
> Language IDs: (length=4)
> 0409 English(US)
> ==========================================================================
>
> ==========================================================================
> Lexar Jumpdrive Trio ()
> --------------------------------------------------------------------------
>
> /proc/scsi/scsi:
> Attached devices:
> Host: scsi2 Channel: 00 Id: 00 Lun: 00
> Vendor: Generic Model: STORAGE DEVICE Rev: 0125
> Type: Direct-Access ANSI SCSI revision: 02
>
> lsusb -v:
> Bus 001 Device 004: ID 05dc:b013 Lexar Media, Inc.
> Device Descriptor:
> bLength 18
> bDescriptorType 1
> bcdUSB 2.00
> bDeviceClass 0 (Defined at Interface level)
> bDeviceSubClass 0
> bDeviceProtocol 0
> bMaxPacketSize0 64
> idVendor 0x05dc Lexar Media, Inc.
> idProduct 0xb013
> bcdDevice 1.25
> iManufacturer 2 Lexar Media
> iProduct 3 JumpDrive Trio
> iSerial 4 0000169315
> bNumConfigurations 1
> Configuration Descriptor:
> bLength 9
> bDescriptorType 2
> wTotalLength 32
> bNumInterfaces 1
> bConfigurationValue 1
> iConfiguration 0
> bmAttributes 0x80
> MaxPower 500mA
> Interface Descriptor:
> bLength 9
> bDescriptorType 4
> bInterfaceNumber 0
> bAlternateSetting 0
> bNumEndpoints 2
> bInterfaceClass 8 Mass Storage
> bInterfaceSubClass 6 SCSI
> bInterfaceProtocol 80 Bulk (Zip)
> iInterface 0
> Endpoint Descriptor:
> bLength 7
> bDescriptorType 5
> bEndpointAddress 0x81 EP 1 IN
> bmAttributes 2
> Transfer Type Bulk
> Synch Type none
> Usage Type Data
> wMaxPacketSize 0x0200 bytes 512 once
> bInterval 0
> Endpoint Descriptor:
> bLength 7
> bDescriptorType 5
> bEndpointAddress 0x02 EP 2 OUT
> bmAttributes 2
> Transfer Type Bulk
> Synch Type none
> Usage Type Data
> wMaxPacketSize 0x0200 bytes 512 once
> bInterval 0
> Language IDs: (length=4)
> 0409 English(US)
> ==========================================================================
--
Matthew Dharm Home: [EMAIL PROTECTED]
Maintainer, Linux USB Mass Storage Driver
It was a new hope.
-- Dust Puppy
User Friendly, 12/25/1998
pgpl57r8I9xx1.pgp
Description: PGP signature
