On Sun, 4 Jan 2004, Christian Pelealu wrote:
> I don't have sd_mod as a module for both 2.4.23 & 2.6.1-rc1. It's
> compiled in the kernel. This is because I have 2 real SCSI harddrives:
>
>
> scsi0 : Adaptec AIC7XXX EISA/VLB/PCI SCSI HBA DRIVER, Rev 6.2.36
> <Adaptec aic7899 Ultra160 SCSI adapter>
> aic7899: Ultra160 Wide Channel A, SCSI Id=7, 32/253 SCBs
>
> (scsi0:A:0):
> 160.000MB/s transfers (80.000MHz DT, offset 63, 16bit)
> (scsi0:A:1): 160.000MB/s transfers (80.000MHz DT, offset 63, 16bit)
> Vendor: SEAGATE Model: ST336605LW Rev: 0003
> Type: Direct-Access ANSI SCSI revision: 03
> Vendor: SEAGATE Model: ST336605LW Rev: 0002
> Type: Direct-Access ANSI SCSI revision: 03
> scsi1 : Adaptec AIC7XXX EISA/VLB/PCI SCSI HBA DRIVER, Rev 6.2.36
> <Adaptec aic7899 Ultra160 SCSI adapter>
> aic7899: Ultra160 Wide Channel B, SCSI Id=7, 32/253 SCBs
>
>
> The kernel option for 2.4.23 is more or less the same with 2.6. It's
> just that 2.6 has a newer aic7xxx driver(?) than 2.4's. Do you think
> this has to do with usb-storage-aic7xxx interaction ?
What interaction? I don't think aic7xxx has anything to do with this at
all. I think it's weird, nonstandard behavior on the part of your camera.
> I did echo 'MATSHITA:DMC-LC40:0x3000' > /proc/scsi/device_info.
> It's still the same.
Okay, try using this patch under 2.6 instead. It will remove entirely the
TEST UNIT READY command that's causing all your problems. While I don't
recommend doing that as a rule, it will be interesting to see if it makes
a difference for your camera.
Alan Stern
--- 2.6/drivers/scsi/sd.c.orig Mon Nov 10 10:26:50 2003
+++ 2.6/drivers/scsi/sd.c Sun Jan 4 15:30:59 2004
@@ -606,9 +606,13 @@
* by sd_spinup_disk() from sd_revalidate_disk(), which happens whenever
* sd_revalidate() is called.
*/
+#if 0
retval = -ENODEV;
if (scsi_block_when_processing_errors(sdp))
retval = scsi_ioctl(sdp, SCSI_IOCTL_TEST_UNIT_READY, NULL);
+#else
+ retval = 0;
+#endif
/*
* Unable to test, unit probably not ready. This usually
-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel