Remove All Ads from XDA
Find Your Device:
Or Continue to Thread: USB Host mode on Defy
20th February 2011, 04:04 PM |#6  
OP Junior Member
Thanks Meter: 17
 
More
Quote:
Originally Posted by unrafa

http://copytaste.com/e272

unrafa, thanks a lot for your info.

One correction to my previous command line for current USB mode:
"cat /sys/devices/platform/musb_hdrc/mode"

Following dmesg of Defy shows the internal USB modem is attached to the USB Host for modem init. But later reset as b_peripheral:
Code:
<6>[    8.118133] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
<4>[    8.118347] IRQ 78/usbtll: IRQF_DISABLED is not guaranteed on shared IRQs
<6>[    8.119018] ehci-omap ehci-omap.0: OMAP-EHCI Host Controller
<6>[    8.119323] ehci-omap ehci-omap.0: new USB bus registered, assigned bus number 1
<6>[    8.119842] ehci-omap ehci-omap.0: irq 77, io mem 0x48064800
<6>[    8.134368] ehci-omap ehci-omap.0: USB 2.0 started, EHCI 1.00
<6>[    8.135192] usb usb1: configuration #1 chosen from 1 choice
<6>[    8.135650] hub 1-0:1.0: USB hub found
<6>[    8.135833] hub 1-0:1.0: 3 ports detected
<6>[    8.136688] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
<6>[    8.137451] usbcore: registered new interface driver cdc_acm
<6>[    8.137573] cdc_acm: v0.26:USB Abstract Control Model driver for USB modems and ISDN adapters
<6>[    8.138244] usbcore: registered new interface driver usbserial
<6>[    8.138366] usbserial: USB Serial Driver core
<6>[    8.138641] USB Serial support registered for moto-modem
<6>[    8.138946] usbcore: registered new interface driver moto-modem
<6>[    8.139312] USB Serial support registered for QSC 6085 Modem Driver
<6>[    8.139617] usbcore: registered new interface driver cdma-modem
...
<6>[   80.229614] MUSB BUS RESET as b_peripheral
How about to use:
"echo b_host > /sys/devices/platform/musb_hdrc/mode"
to enable the Host mode again?

May run command "modinfo musb_hdrc" to get actual parameters we can use to enable the Host mode.
Something like "modprobe musb_hdrc mode_default=1".