pendrive fails to enumerate - usb port feature returns 3

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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.

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.

Kernel Source is 2.6.28. I will appreciate any pointers.

Below is output of few of my printks and my some comments....

[root@Linux /]#xyz-ehci xyz-ehci: USB bus 1 deregistered
xyz-ehci xyz-ehci: pxa9xx ehci
xyz-ehci xyz-ehci: new USB bus registered, assigned bus number 1
xyz-ehci xyz-ehci: irq 44, io mem 0x0888a000
xyz-ehci xyz-ehci: USB 2.0 started, EHCI 1.00
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
port 1, status 0101, change 0001, 12 Mb/s
Set port feature=0 at hub_port_reset : 1855
===========
This is FAIL case
*Ummm portchange:portstatus 3:257 @ hub_port_wait_reset() function :line 1801*
status is ENOTCONN hub_port_reset : 1878
============
===========
For PASS case
*Ummm portchange:portstatus 0:257 @ hub_port_wait_reset() function :line 1801*
============

--
Thanks,
Viral Mehta,
Embedded Software Engineer,
Tel. No. 91 79 26563705, Ext. 423
www.einfochips.com <http://www.einfochips.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

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux