Hey, I've finally compiled 2.2.16 with the 2.4.0-test2-pre2 backport.
Interesting things I've noted. First of all, the Sony DSC-F505 camera I
have that used to work without anything special now needs the following
unusual device entry:
{ 0x054c, 0x0010, 0x106,
"Sony DSC-F505", US_SC_SCSI, US_PR_CB,
US_FL_SINGLE_LUN | US_FL_START_STOP | US_FL_MODE_XLATE | US_FL_ALT_LENGTH}
During initialization without this, it would still detect the device, but
it would timeout during initialization. I'm not sure if this will be
fixed once the host_reset and bus_reset functions are implemented or not.
This is what it looks like (without the debugging):
usb.c: registered new driver usb-storage
scsi1 : SCSI emulation for USB Mass Storage devices
scsi : 2 hosts.
usb-storage: bus_reset() requested but not implemented
usb-storage: bus_reset() requested but not implemented
usb-storage: host_reset() requested but not implemented
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 2
USB Mass Storage support registered.
And with the unusual device entry:
usb.c: registered new driver usb-storage
scsi1 : SCSI emulation for USB Mass Storage devices
scsi : 2 hosts.
Vendor: Sony Model: DSC - F505 Rev: 1.06
Type: Direct-Access ANSI SCSI revision: 02
Detected scsi removable disk sdc at scsi1, channel 0, id 0, lun 0
SCSI device sdc: hdwr sector= 512 bytes. Sectors= 126976 [62 MB] [0.1 GB]
sdc: test WP failed, assume Write Protected
sdc: sdc1
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 2
USB Mass Storage support registered.
And finally, there doesn't seem to be support for "media change". Is
there such a thing in the USB spec for block devices? Basically, if I
yank the memory stick from my camera and put another one in (of a
different size), it will still report the old information on size, etc.
Even if I detach the device and add it back to the chain, it doesn't check
the media size. The only way around this is to unload usb-storage and
reload it.
--
Cornelius "Kees" Cook [EMAIL PROTECTED]
Sr. Systems Engineer Counterpoint Networking, Inc.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]