Re: Hi all, I'm newbe, so apologize for my stupid questions.

Alan Stern <[email protected]>
Newsgroups gmane.linux.usb.devel
Message-ID <[email protected]>
On Sat, 22 Sep 2007, Fabio Giovagnini wrote:

> Wow, Alan, 
> you are the manteiner of the UHCI !!!!
> 
> So you are the GURUUU!!!!!
> 
> Please help me finding where I can hack teh kernel to watch the content of the 
> data stage of a get_device_descriptor transaction.

There's no way to do it.  Those transfers take place automatically 
without the kernel getting involved.  All you can see is the final 
result.

There is one thing you can do, however.  Build a kernel with 
CONFIG_USB_DEBUG and CONFIG_DEBUG_FS both enabled, and do

	modprobe uhci-hcd debug=2

(or if you prefer, "echo 2 >/sys/module/uhci_hcd/parameters/debug" 
after the module has been loaded).  Then do

	mount -t debugfs none /sys/kernel/debug
	cd /sys/kernel/debug/uhci

Then a couple of seconds after plugging in your device, save a copy of 
the file which corresponds to the controller your device is attached 
to.  That file will contain the current state of the data structures 
used by the UHCI controller and the driver.

Alan Stern


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.