[EMAIL PROTECTED] wrote:
The ATA convention is to return the capacity.
The SCSI convention is to return the highest block number,
one less than the capacity.
So, the driver misses a -1.

Phew, I would have never found this. Congrats!


Another problem causing hangs was that the SCSI code does
TEST_UNIT_READY, and datafab.c first wants to determine
which lun it is using, and tries to find out, but the attempt
fails and causes scsi error-recovery, but that does TEST_UNIT_READY
and we have a recursion.
Below a patch fixing both problems. Now my two-lun device works
for CF and it works for SM but not both - depending on the order
of the entries in unusual_devices.

Hmm, this patch does not work for me. If I don't insert a CF card in my CF reader insmod'ing usb-storage with sd-mod preloaded just causes insmod to hang. Did you try this?


greetings,
eduard



-------------------------------------------------------
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

Reply via email to