Hello. I have am3505. I use kernel 2.6.37(musb driver)
Switch to the periphery and return back to work correctly.(modprobe g_file_storage)
I want by default when I inserted the usb otg cable with the device, otg port worked as ahost and a device defined in the system
I set up Otg mode. But, when my board start, and i insert Otg cable, nothing happens. I did research and found out, that hub driver not loaded, not called musb_start, interrupts are not initialized.
"echo F > musb_hdrc.0" also did not help, because interrupts are not initialized.
1)My first question is how to initialize otg mode correctly and is it capable of mine operation in these driver?
***
At this moment I corrected the driver so that it loads by default as a usb host, and if the cable is inserted into the device, the device is defined in the system. But if I do not have otg cable in the moment when the driver is loaded, the bit SESSION in devctl reset, and when I insert the device, it is not defined.
2)Bit SESSION is cleared in software or by controller in this situation ?
When the device is defined in the system, it is powered from the controller.
But even when the device and the cable is disconnected from the bus, the bus remains power on.
3)This is normal operation for the OTG controller?
4)And what happens if at this moment we connect any other usb host and make "modprobe g_file_storage"