Hi Greg,<br><br><span style="color:rgb(51,102,255)">What type of diagnostics are you trying to do?</span><br> I am trying to is to make communication to all the chips present on board (from kernel) and make sure all the input/output lines are working on that chip and the status of the configuration.<br>
As I am doing with the other chips like video controller ,audio controller etc ,I want to make sure the working condition of the USB controller and some tests to prove input and output lines are working and if possible loop back data test.<br>
<br>
<span style="color:rgb(51,102,255)">How can it not be configured correctly?</span><br style="color:rgb(51,102,255)"><br>I am not sure in which condition the configuration of controller may fail but just I want to make sure the controller is configured properly.<br>
<br><span style="color:rgb(51,102,255)">You have looked at the debugfs files for the usb controllers for this</span><br style="color:rgb(51,102,255)"><span style="color:rgb(51,102,255)">
type of thing already, right?</span><br><br>I have seen debugfs where I can dump all the configuration reg values ,but not sure to see which reg values to confirm controller is configured properly.<br><br>Also I was trying to get the linux-usb project (<a href="http://sourceforge.net/apps/trac/sourceforge/wiki/Git">http://sourceforge.net/apps/trac/sourceforge/wiki/Git</a>) through git to make use of some code in there for some of the tests but I am not able to get it.<br>
Is there any alternative link from where I can get the code (like lsusb.c etc )..<br><br>Thanks ,<br>Praveen<br><br><br><br><br><div class="gmail_quote">On Mon, Jan 16, 2012 at 11:07 PM, Greg KH <span dir="ltr"><<a href="mailto:greg@kroah.com">greg@kroah.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="im">On Mon, Jan 16, 2012 at 04:15:09PM +0530, Praveen kumar wrote:<br>
> Hi All,<br>
> As part of diagnostics I have to make sure the USB controller is<br>
> configured correctly.<br>
<br>
</div>How can it not be configured correctly?<br>
<div class="im"><br>
> Can I get this information from any entry in /sys or /proc ?? If yes where ??<br>
> If no I plan to add a exclusive entry in the driver to do my diagnostics.<br>
<br>
</div>What type of diagnostics are you trying to do?<br>
<div class="im"><br>
> Is that feasible by reading some of the registers in<br>
> the controller ??<br>
<br>
</div>You have looked at the debugfs files for the usb controllers for this<br>
type of thing already, right?<br>
<br>
greg k-h<br>
</blockquote></div><br>