On Wed, 10 May 2006, rakesh kn wrote:

> Hi ,
> 
> I have written the platform glue for ARC - EHCI controller. I provided
> the suspend/resume call backs in struct platform_driver with CONFIG_PM
> and CONFIG_USB_SUSPEND for selecti ve suspend/resume enabled.
> 
> My kernel is compile to be monolithic. So once the kernel boots up,
> the driver is registered.
> 
> I mounted on sysfs and when i try to suspend the host controller with
> a camera (mass storage) pluggged in to it.
> 
> I have provided some debug prints in the suspend/resume call backs i
> provided in the struct platform_driver.
> 
> I execute the command to suspend using /sys/bus/usb/devices/usb1/powe/state
> 
> ehco -n 3 > /sys/bus/usb/devices/usb1/powe/state,
> Shouldn't the corresponding suspend call back get invoked. For me it is not.
> Similarly for resume.
> 
> Please tell me where i am wrong.

First problem: You have misspelled the file name.  It should be:

        /sys/bus/usb/devices/usb1/power/state

with an 'r' at the end of "power".

Second problem: You cannot suspend the host controller without first 
suspending all the devices and interfaces beneath it in the device tree.

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