On Thu, 28 Aug 2003, Roe Peterson wrote:

> These two patches make the NZ90 memory stick import work correctly as a 
> usb-storage
> device under RedHat 8 running kernel 2.4.20-18.8. - and will probably 
> work under 2.4.20-20...
> 
> nz90-usb-storage.patch:
>     - the NZ90 doesn't like seeing prevent/allow medium removal 
> commands, so I've just
>        stopped sending them.  I should probably have a little more 
> smarts here (only skip them
>        when dealing with an NZ90), but I'm a bit lazy... and the NZ is 
> the only USB storage
>         device I have...

Does it identify itself (in its INQUIRY response) as having removeable 
media?  If not, this is somewhat understandable -- the SCSI layer 
shouldn't send these commands to nonremoveable devices.  I believe this 
has been fixed in 2.6.  But if the NZ90 says the media _is_ removeable 
then it should be able to handle the PREVENT-ALLOW-MEDIUM-REMOVAL command.

>     -    on the _very_first_ inquiry command after MS-import has 
> started, the NZ90 returns
>         Unit Attention, Check condition, Transition from not-ready to 
> ready.  This (incorrectly,
>         IMHO) caused the transport system to lock the device.  The patch 
> arranges for the INQUIRY
>         to always trigger a REQUEST SENSE, reading and clearing the 
> condition, and to ignore
>         the incorrect error status.

That's a bug in the NZ90 -- INQUIRY is _not_ supposed to trigger Unit 
Attention (according to the SCSI-2 standard).  On the other hand, if 
INQUIRY doesn't do it then some later command like READ-CAPACITY will.  
What do you mean, "caused the transport system to lock the device"?  What 
is a locked NZ90 and how do you lock it?  And what is the "transport 
system"?  Do you just mean that the NZ90 stopped responding to USB 
messages?

Alan Stern



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to