On Mon, 5 Jan 2004, Christian Pelealu wrote:
> Okay, that patch did the trick. What harm will it do then without TEST
> UNIT READY ? Does this mean that, by this patch, it's just the same with
> reverting back to old pre-2.4.23 way ?
Not quite. I'd like you to try this patch in place of the earlier one,
just out of curiousity. This gets rid of the PREVENT ALLOW MEDIUM REMOVAL
commands. My guess is that somehow your camera interprets ALLOW MEDIUM
REMOVAL the same as an unload/eject command, which is definitely the wrong
thing to do. If it works with this patch, we'll know that that is the
problem.
Alan Stern
===== sd.c 1.59 vs edited =====
--- 1.59/drivers/scsi/sd.c Fri Oct 24 14:53:37 2003
+++ edited/drivers/scsi/sd.c Tue Jan 6 11:16:41 2004
@@ -431,8 +431,10 @@
goto error_out;
if (!sdkp->openers++ && sdev->removable) {
+#if 0
if (scsi_block_when_processing_errors(sdev))
scsi_set_medium_removal(sdev, SCSI_REMOVAL_PREVENT);
+#endif
}
return 0;
@@ -462,8 +464,10 @@
SCSI_LOG_HLQUEUE(3, printk("sd_release: disk=%s\n", disk->disk_name));
if (!--sdkp->openers && sdev->removable) {
+#if 0
if (scsi_block_when_processing_errors(sdev))
scsi_set_medium_removal(sdev, SCSI_REMOVAL_ALLOW);
+#endif
}
/*
-------------------------------------------------------
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