On Mon, 28 May 2007, Pandita, Vikram wrote: > What is needed to enable the DEBUG support in EHCI?
CONFIG_USB_DEBUG. If you want even more debugging, edit drivers/usb/host/ehci-hcd.c and change "#undef EHCI_VERBOSE_DEBUG" to #define. > Where to look for sysfs entries and what all is supported in sysfs? Look in /sys/class/usb_host/usb_hostN/ where N is the bus number of the controller. There are files describing the contents of the controller's registers, the periodic and async schedules, and more. > What about OHCI/UHCI debug support? OHCI works similarly to EHCI. With UHCI, the debugging support is in debugfs instead of sysfs (one can argue that the same should be true of the other two). If you turn on CONFIG_USB_DEBUG and CONFIG_DEBUG_FS and mount a debugfs filesystem under /sys/kernel/debug then the UHCI information will appear in /sys/kernel/debug/uhci/X, where X is the controller's device ID. You can increase the amount of information in the file by setting the "debug=" module parameter for uhci-hcd to values higher than 1. Alan Stern ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel