This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

OTG support host is not working



Hi,

OTG support in Linux 2.6.37

I have enabled OTG support from menuconfig.
Driver Mode (Both host and peripheral:  USB OTG (On The Go) Device) &  USB Gadget Support .

make modules :-
  <M>     File-backed Storage Gadget
  [*]       File-backed Storage Gadget testing version
  <M>     Mass Storage Gadget

 Load insmod g_mass_storage.ko file=/dev/mmcblk0p1 stall=0 removable=1 then is detected as peripheral.
 but i connect pendrive as a host is not detected.

Log from musb_hdrc :-

----------------------------

root@dm365-evm:~# cat /proc/driver/musb_hdrc
Status: MHDRC, Mode=Peripheral (Power=20, DevCtl=98)
OTG state: b_idle; inactive
Options: cppi-dma, otg (peripheral+host), debug=0 [eps=5]
Peripheral address: 01
Root port status: 00000000
DaVinci: ctrl=00 stat=0 phy=21f0
        rndis=00000 auto=0000 intsrc=00000000 intmsk=00000000
CPPI: txcr=1 txsrc=0 txena=f; rxcr=1 rxsrc=0 rxena=f
Gadget driver: (none)
ep0 (hw0): 1buf, csr 0000 maxp 0000
        (queue empty)


Any missing from my side ?

Regards,
Tejas