Matthew Dharm <[EMAIL PROTECTED]> writes: > That fix breaks all sorts of other devices. > > This is an icky problem, because the issue is not the dongle, but what's > on the other side of the dongle. > > You can't have usb-storage do any mode translation, because it screws up > other devices (Traveller CD-RW, OnStream Tape, etc.)
The only difference between the protocols seems to be translation of MODE_SENSE/SELECT and READ/WRITE from the short to the long versions. Is the problem that there are devices on the other side of a Freecom cable that only support the short versions? > Hrm... > > sr.c doesn't have anything to do with writing... that's all done in > userspace. Are you using cdrecord? It does if you apply the packet writing patch. (Which will probably be included in the standard kernel in 2.5.) See: http://www.kernel.org/pub/linux/kernel/people/axboe/packet/ http://w1.894.telia.com/~u89404340/patches/packet/ This problem can be observed even without the packet writing patch. The code in get_capabilities in sr.c identifies the drive as scsi-1 instead of scsi3-mmc. cdrecord seems to work also when using the QIC protocol, because it is using the 10-byte version of MODE_SENSE. Maybe the code in sr.c could be changed to use MODE_SENSE_10 instead of MODE_SENSE, or at least try the 10-byte version if the 6-byte version fails. But that seems more like a workaround. Either usb-storage needs to handle MODE_SENSE(6) or it doesn't. Currently, the code apparently tries to handle it, but fails in my particular case. > What does cdrecord -scanbus and -inq say? pengo:/home/petero# cdrecord -scanbus Cdrecord 1.11a03 (i686-pc-linux-gnu) Copyright (C) 1995-2001 Jörg Schilling Linux sg driver version: 3.1.22 Using libscg version 'schily-0.5' scsibus0: 0,0,0 0) 'TEAC ' 'CD-224E ' '1.0A' Removable CD-ROM 0,1,0 1) * 0,2,0 2) * 0,3,0 3) * 0,4,0 4) * 0,5,0 5) * 0,6,0 6) * 0,7,0 7) * scsibus1: 1,0,0 100) 'TEAC ' 'CD-W24E ' '1.0A' Removable CD-ROM 1,1,0 101) * 1,2,0 102) * 1,3,0 103) * 1,4,0 104) * 1,5,0 105) * 1,6,0 106) * 1,7,0 107) * pengo:/home/petero# cdrecord -dev 1,0,0 -inq Cdrecord 1.11a03 (i686-pc-linux-gnu) Copyright (C) 1995-2001 Jörg Schilling scsidev: '1,0,0' scsibus: 1 target: 0 lun: 0 Linux sg driver version: 3.1.22 Using libscg version 'schily-0.5' Device type : Removable CD-ROM Version : 2 Response Format: 1 Vendor_info : 'TEAC ' Identifikation : 'CD-W24E ' Revision : '1.0A' Device seems to be: Generic mmc CD-RW. -- Peter Osterlund - [EMAIL PROTECTED] http://w1.894.telia.com/~u89404340 _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel