On Fri, 14 Apr 2006, rakesh kn wrote: > Hi All, > > We are working in 2.6.11 kernel. We are supposed to test the linux > host controller driver for ARC-EHCI controller residing "on a non-PCI > based" bus. > > All the basic functionality of EHCI driver for ARC can be tested using > usbtest.c kernel-mode test driver. We have to test suspend/resume > functionality of our dirver. Please remember that it is a non-PCI > based controller. > > We went through the mailing list which suggests the following method. > "to suspend echo -n 3 > /sys/bus/usb/.../state" > "to resume echo -n 0 > /sys/bus/usb/.../state" > > But the kernel and the root.jfs (root file system) which we got, when > loaded onto the prototype board doesnot have the /sys fylesystem. For > some reason, we are restricted by this. > > We have access to usbfs mounted on /proc. CONFIG_PM, > CONFIG_USB_SUSPEND flags are defined. USB 2.0 spec says that the host > controller in suspended state does not send SOF and there will be no > downstream bus traffic. But how can we put a controller into a > suspended state. We have the kernel source code with us. > > Please suggest a method to test the suspend and resume of the ARC Host > controller from within/outside the driver. We don't have /sys file > system. Also /proc/bus/usb doesn't have any power management > interface. > > PLS HELP!!!!
You will have to write your own interface to replace the missing sysfs functions. For example, you could add a file to /proc and make it so the writes to the file would suspend or resume your controller. Alan Stern ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&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