Got a portable CD-RW drive labeled as Mitsubishi Chemical CD-RW4420U
It is setup as:
Vendor: SONY Model: CD-RW CRX500E Rev: qsi3
Type: CD-ROM ANSI SCSI revision: 02
I have only one problem with it: when writing one of multiple sessions
and mounting the drive, the cache is not flushed, so the session just written
does not show up. Opening and closing the cover forces flushing of caches.
How to force flushing of the cache from userspace?
The USB ID is 0x4ce/2/22. This drive uses Cypress SL11R (former
Scanlogic USBIDE) and works fine with this entry in unusual_devs.h:
UNUSUAL_DEV(0x04ce, 0x0002, 0x22, 0x22,
"SL11R-IDE",
"Sony CRX500E, Mitsubishi CD RW4420U",
US_SC_8070, US_PR_BULK, NULL, US_FL_SL_IDE_BUG),
and the US_FL_SL_IDE_BUG patch to transport.c:
diff -ur storage.org/transport.c storage/transport.c
--- storage.org/transport.c Fri Nov 29 00:53:15 2002
+++ storage/transport.c Wed Mar 5 23:30:55 2003
@@ -1234,7 +1234,7 @@
le32_to_cpu(bcs->Signature), bcs->Tag,
bcs->Residue, bcs->Status);
if (bcs->Signature != cpu_to_le32(US_BULK_CS_SIGN) ||
- bcs->Tag != bcb->Tag ||
+ ((bcs->Tag != bcb->Tag) && (!(us->flags & US_FL_SL_IDE_BUG)))||
bcs->Status > US_BULK_STAT_PHASE || partial != 13) {
US_DEBUGP("Bulk logical error\n");
ret = USB_STOR_TRANSPORT_ERROR;
diff -ur storage.org/usb.h storage/usb.h
--- storage.org/usb.h Fri Nov 29 00:53:15 2002
+++ storage/usb.h Wed Mar 5 23:23:06 2003
@@ -101,6 +101,7 @@
#define US_FL_IGNORE_SER 0x00000010 /* Ignore the serial number given */
#define US_FL_SCM_MULT_TARG 0x00000020 /* supports multiple targets */
#define US_FL_FIX_INQUIRY 0x00000040 /* INQUIRY response needs fixing */
+#define US_FL_SL_IDE_BUG 0x00000100 /* ScanLogic USB-IDE work-arround */
#define USB_STOR_STRING_LEN 32
Regards
Michael
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users