Hi, > On Fri, 16 Oct 2009, Viral Mehta wrote: > >> Hi, >> >> I am debugging one problem and I will appreciate if someone can throw >> some light here. >> >> I have one board which supports OTG. It has micro-AB connectors. >> It works fine as gadget then I switch its role by writing to proc file >> and now it is host. > > If this is controlled by a file, that file should not be in procfs! > It should be in sysfs. Thanks... Yeah, I know now nothing goes into procfs as long as it is not related to process.. > >> I have connector which is micro-to-miniA. If I connect any PenDrive to >> it, it fails in enumeration. >> It fails in hub.c file at function hub_port_wait_reset() at line >> if ((portchange & USB_PORT_STAT_C_CONNECTION)) >> >> portchange comes up 3. And so as condition is true, it returns -ENOTCONN >> >> Well, strange thing is all other devices except pendrives works fine. >> I tried my cell phone (which is detected as SCSI mass storage), and usb >> audio device and etc.... >> >> But none of the pendrive works... I tried Transcend, Sandisk... etc. > > It's possible that the OTG port is not capable of supplying enough > current for the pendrives to work. Could that (OTG not supplying enough current) be the reason for get_status_port() returning value 3 for portchange ? Is there any chances that I am missing out any silly thing in kernel configuration ? I am missing something !! Dont know what !! > > Alan Stern > > > > Email Scanned for Virus & Dangerous Content by : www.CleanMailGateway.com > > -- _____________________________________________________________________ Disclaimer: This e-mail message and all attachments transmitted with it are intended solely for the use of the addressee and may contain legally privileged and confidential information. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution, copying, or other use of this message or its attachments is strictly prohibited. If you have received this message in error, please notify the sender immediately by replying to this message and please delete it from your computer. Any views expressed in this message are those of the individual sender unless otherwise stated.Company has taken enough precautions to prevent the spread of viruses. However the company accepts no liability for any damage caused by any virus transmitted by this email. _____________________________________________________________________ -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html