On Thu, 29 Jun 2006, Oliver Neukum wrote:

> Hi,
> 
> does anybody know what error to return from queuecommand for commands
> arriving while a device is being suspended?

I don't know of anyone who has worried about it yet...

You want to tell the SCSI core that your device isn't reachable and it 
shouldn't attempt to retry the command, right?  One way to do that is to 
set scmd->result = DID_NO_CONNECT << 16 and to call done(scmd), then 
return 0.  That's what usb-storage does when queuecommand is called after 
the device has been disconnected.

Presumably this won't come up very often.  If all the children devices are 
properly suspended first then there shouldn't be any calls to queuecommand 
while your device is being suspended.

Alan Stern


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to