I have a related query on USB suspend: 
In Host mode, is there a way to force a SUSPEND/RESUME from the class driver or 
application?

Vikram 

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:linux-usb-
> [EMAIL PROTECTED] On Behalf Of Alan Stern
> Sent: Wednesday, March 07, 2007 9:56 PM
> To: long mei
> Cc: linux-usb-devel@lists.sourceforge.net
> Subject: Re: [linux-usb-devel] How to detect of Windows Pc's removal
> action?
> 
> On Wed, 7 Mar 2007, long mei wrote:
> 
> > Hello,
> > Now I am using usb mass storage function on my pxa270 handset with linux
> > 2.4.20, Now I need a function add to usb driver that detect the action
> that
> > pc user's safely remove usb device by right click usb tray and stop usb
> > device£¬ The action is mount filesystem back. But from usb protocol, I
> have
> > not seen how to detect this.
> > Is this usb removal a standard part of protocol?
> 
> It is not.  But to the gadget, the "USB removal" in Windows appears as a
> USB suspend, which _is_ standard.
> 
> There already is a function in g_file_storage to detect these suspends; it
> is called fsg_suspend().
> 
> Alan Stern
> 
> 
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> linux-usb-devel@lists.sourceforge.net
> To unsubscribe, use the last form field at:
> https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to