Right, OK, that explains it. I need to modify the driver to respond to a 
mode sense on page 0x3F as well as 0x01. The SDDR-09 does not respond to 
MODE SENSE requests at all, so I need to dummy up the proper response.

Clearly I have to do the same with ALLOW MEDIUM REMOVAL.

--Rob

Matthew Dharm wrote:

> Hrm... looks like a bug... srb->cmnd[2] & 0x3F == 0x3F, not 0x01.  This is
> probably a leftover from when sd.c used to request page 1, instead of "all
> pages" -- I changed this when I discovered devices that didn't implement
> page 1, causing the write-protect test to fail.  Requesting all pages is
> guaranteed to be good, tho.
> 
> Matt
> 
> On Mon, Mar 26, 2001 at 11:17:00PM -0600, William Robison wrote:
> 
>> Hey Rob:
>>      More information...
>> 
>> Here is a clip of the log with debugging enabled:
>> 
>>         usb-storage: *** thread sleeping.
>>         usb-storage: queuecommand() called
>>         usb-storage: *** thread awakened.
>>         usb-storage: Command MODE_SENSE (6 bytes)
>>         usb-storage: 1a 00 3f 00 08 00 00 00 00 00 1c c0
>>         usb-storage: CB_reset() called
>>         usb-storage: CB_reset: clearing endpoint halt


_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
http://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to