On Thursday 11 May 2006 10:07 am, Alan Stern wrote:
> Please reply to the mailing list as well as to me.
> 
> On Thu, 11 May 2006, rakesh kn wrote:
> 
> > Hi,
> > In the suspend/resume call back in platform driver structure, i am
> > exactly doing the same,
> > i call bus_suspend to suspend all the ports in the controller. and the
> > i halt the controller.
> > This is what is done in the suspend call back.
> > 
> > Then which function/call back is invoked when we try to suspend/resume
> > from the /sys/bus/usb/devices/usb1/power/state .
> 
> Writing to that file doesn't invoke anything. 

Not so.  That's the device representing the root hub (representing all
the downstream usb links), as distinct from the interface for the root hub
(used to control individual downstream links) or the host controller (for
the upstream links, such as PCI or some other bus).


> However,  
> hcd->driver->bus_suspend and hcd->driver->bus_resume get invoked when you 
> write to /sys/bus/usb/devices/usb1/1-0:1.0/power/state.

To understand what goes on in such cases, CONFIG_USB_DEBUG is a help.
Poke an individual /sys/devices/.../power/state file and see what calls
get made.  Or, read the source code.

- Dave


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