[HD2 Android NAND Development] liiochen:
THE OTG DRIVER IS PORTED SUCCESS!!

Now , We tested msm72k otg driver with msm72k_udc.

in this version the udc is port from sony x10

but , we not begin test otg with ehci driver. that need some times.

my log:

<6>[ 2.149291] [USB] -== MSM7201 OTG DRIVER START PROBE ==-
<6>[ 2.149383] msm_hsusb_phy_reset
<6>[ 2.335937] usbcore: registered new interface driver cdc_acm
<6>[ 2.335968] cdc_acm: v0.26:USB Abstract Control Model driver for USB modems and ISDN adapters
<6>[ 2.335998] Initializing USB Mass Storage driver...
<6>[ 2.336090] usbcore: registered new interface driver usb-storage
<6>[ 2.336120] USB Mass Storage support registered.
<6>[ 2.336212] usbcore: registered new interface driver libusual
<6>[ 2.336395] usbcore: registered new interface driver usbserial
<6>[ 2.336425] usbserial: USB Serial Driver core
<6>[ 2.336486] USB Serial support registered for FTDI USB Serial Device
<6>[ 2.336578] usbcore: registered new interface driver ftdi_sio
<6>[ 2.336608] ftdi_sio: v1.5.0:USB FTDI Serial Converters Driver
<6>[ 2.336700] [USB] msm7201_probe
<6>[ 2.336700] [USB] accessory detect 0
<6>[ 2.336730] [USB] id_pin_gpio 0
<6>[ 2.336761] [USB] dock detect 0
<6>[ 2.336761] [USB] dock pin gpio 0
<6>[ 2.336822] [USB] msm72k_probe() io=d0864000, dma=ffb4c000(212da000)
<6>[ 2.337249] peripheral driver registered w/ tranceiver
<6>[ 2.337280] [USB] -== MSM7201 IS READY TO GO! ==-
<6>[ 2.337402] android init
<6>[ 2.337463] android_probe pdata: c06605b0
<6>[ 2.337554] android_bind
<7>[ 2.337585] android_bind_config
<6>[ 2.337615] android_usb gadget: android_usb ready
<6>[ 2.337677] [USB] msm7201_udc: registered gadget driver 'android_usb'

udc init log:

<6>[ 2.336700] [USB] msm7201_probe
<6>[ 2.336700] [USB] accessory detect 0
<6>[ 2.336730] [USB] id_pin_gpio 0
<6>[ 2.336761] [USB] dock detect 0
<6>[ 2.336761] [USB] dock pin gpio 0
<6>[ 2.336822] [USB] msm72k_probe() io=d0864000, dma=ffb4c000(212da000)
<6>[ 2.337249] peripheral driver registered w/ tranceiver
<6>[ 2.337280] [USB] -== MSM7201 IS READY TO GO! ==-
<6>[ 2.337402] android init
<6>[ 2.337463] android_probe pdata: c06605b0
<6>[ 2.337554] android_bind
<7>[ 2.337585] android_bind_config
<6>[ 2.337615] android_usb gadget: android_usb ready
<6>[ 2.337677] [USB] msm7201_udc: registered gadget driver 'android_usb'
<6>[ 2.337768] f_adb init
<6>[ 2.337799] android_register_function adb
<6>[ 2.337799] f_mass_storage init
<6>[ 2.337829] android_register_function usb_mass_storage
<6>[ 2.337860] f_rndis init
<6>[ 2.337951] android_register_function rndis
<6>[ 2.337982] rndis_function_bind_config MAC: 00:00:00:00:00:00
<4>[ 2.338043] android_usb gadget: using random self ethernet address
<4>[ 2.338073] android_usb gadget: using random host ethernet address
<6>[ 2.338500] usb0: MAC 22:c3:48:ae:ab:67
<6>[ 2.338531] usb0: HOST MAC a2:34:32:0e:10:83
<6>[ 2.338653] mass_storage_bind_config
<6>[ 2.338775] fsg_probe pdata: c0661a04
<6>[ 2.339080] [USB] hsusb_udc: IDLE -> ONLINE
<6>[ 2.339111] [USB] lpm exit
<6>[ 2.339141] [USB] hsusb: reset controller
...
<6>[ 2.355712] msm_hsusb_phy_reset
<6>[ 2.435699] [USB] ulpi: write 0x0c to 0x31
<6>[ 2.435729] [USB] ulpi: write 0x30 to 0x32
<6>[ 2.435760] [USB] ulpi: write 0x1d to 0x0d
<6>[ 2.435760] [USB] ulpi: write 0x1d to 0x10
<6>[ 2.435852] usb: notify offline
<6>[ 2.435882] [USB] msm_hsusb: enable pullup
<6>[ 2.438995] [USB] -== OTG IRQ HANDLE ==-
<6>[ 2.439025] [USB] suspend
<6>[ 2.455688] [USB] not AC charger
<6>[ 2.567230] [USB] -== OTG IRQ HANDLE ==-
<6>[ 2.567260] [USB] reset
<6>[ 2.567260] usb: notify offline
<6>[ 2.567291] [USB] send connect type 1
<6>[ 2.567321] fsg_set_ums_state: 1
<6>[ 2.567352] ums: set state 1
<6>[ 2.567443] batt:online=1
<6>[ 2.569519] [USB] -== OTG IRQ HANDLE ==-
<6>[ 2.569549] [USB] portchange USB_SPEED_HIGH
<6>[ 2.667663] [USB] -== OTG IRQ HANDLE ==-
<6>[ 2.668640] [USB] -== OTG IRQ HANDLE ==-
<6>[ 2.669616] [USB] -== OTG IRQ HANDLE ==-
<6>[ 2.672241] [USB] -== OTG IRQ HANDLE ==-
<6>[ 2.672271] [USB] reset
<6>[ 2.672302] usb: notify offline
<6>[ 2.674530] [USB] -== OTG IRQ HANDLE ==-
<6>[ 2.674560] [USB] portchange USB_SPEED_HIGH
<6>[ 2.770721] [USB] -== OTG IRQ HANDLE ==-
<6>[ 2.771636] [USB] -== OTG IRQ HANDLE ==-
<6>[ 2.777038] s5k3e2fx:kobject creat and add

register log

<6>[ 2.782684] [USB] -== OTG IRQ HANDLE ==-
<6>[ 2.783172] Registered led device: amber
<6>[ 2.783264] Registered led device: green
<6>[ 2.783325] microp_led_probe: succeeded
<6>[ 2.783630] [USB] -== OTG IRQ HANDLE ==-
<6>[ 2.783935] usbcore: registered new interface driver usbhid
<6>[ 2.783996] usbhid: v2.6:USB HID core driver
<6>[ 2.784423] logger: created 64K log 'log_main'
<6>[ 2.784545] logger: created 256K log 'log_events'
<6>[ 2.784637] [USB] -== OTG IRQ HANDLE ==-
<6>[ 2.784759] logger: created 64K log 'log_radio'
<6>[ 2.784881] logger: created 64K log 'log_system'
<6>[ 2.785247] zram: num_devices not specified. Using default: 1
<6>[ 2.785339] zram: Creating 1 devices ...
<6>[ 2.785644] [USB] -== OTG IRQ HANDLE ==-
<4>[ 2.785919] GACT probability NOT on
<4>[ 2.785949] Mirror/redirect action on
<4>[ 2.785980] u32 classifier
<4>[ 2.786010] Actions configured

some unused irq log:

<6>[ 3.044708] mmc1: new high speed SDHC card at address 1234
<6>[ 3.045196] mmcblk0: mmc1:1234 SA04G 3.63 GiB
<6>[ 3.045501] mmcblk0: p1
<6>[ 3.067138] [USB] -== OTG IRQ HANDLE ==-
<6>[ 3.068145] [USB] -== OTG IRQ HANDLE ==-
<6>[ 3.069122] [USB] -== OTG IRQ HANDLE ==-
<6>[ 3.070129] [USB] -== OTG IRQ HANDLE ==-
<6>[ 3.071136] [USB] -== OTG IRQ HANDLE ==-
<6>[ 3.799713] [USB] -== OTG IRQ HANDLE ==-
<6>[ 3.800628] [USB] -== OTG IRQ HANDLE ==-
<6>[ 3.801635] [USB] -== OTG IRQ HANDLE ==-
<6>[ 3.802642] [USB] -== OTG IRQ HANDLE ==-
<6>[ 3.803619] [USB] -== OTG IRQ HANDLE ==-
<6>[ 3.804626] [USB] -== OTG IRQ HANDLE ==-
<6>[ 3.805633] [USB] -== OTG IRQ HANDLE ==-
<6>[ 3.806671] [USB] -== OTG IRQ HANDLE ==-
<6>[ 3.807647] [USB] -== OTG IRQ HANDLE ==-
<6>[ 3.808624] [USB] -== OTG IRQ HANDLE ==-
<6>[ 3.809631] [USB] -== OTG IRQ HANDLE ==-
<6>[ 3.810638] [USB] -== OTG IRQ HANDLE ==-
<6>[ 3.811645] [USB] -== OTG IRQ HANDLE ==-
<6>[ 3.812622] [USB] -== OTG IRQ HANDLE ==-
<6>[ 3.813629] [USB] -== OTG IRQ HANDLE ==-
<6>[ 3.814636] [USB] -== OTG IRQ HANDLE ==-
<6>[ 3.815643] [USB] -== OTG IRQ HANDLE ==-
<6>[ 3.816619] [USB] -== OTG IRQ HANDLE ==-
<6>[ 3.817626] [USB] -== OTG IRQ HANDLE ==-
<6>[ 3.818634] [USB] -== OTG IRQ HANDLE ==-
<6>[ 3.819641] [USB] -== OTG IRQ HANDLE ==-
<6>[ 3.822143] [USB] -== OTG IRQ HANDLE ==-
<6>[ 3.822998] [USB] -== OTG IRQ HANDLE ==-
<6>[ 3.824005] [USB] -== OTG IRQ HANDLE ==-
<6>[ 3.825012] [USB] -== OTG IRQ HANDLE ==-
<6>[ 3.826019] [USB] -== OTG IRQ HANDLE ==-
<6>[ 3.826995] [USB] -== OTG IRQ HANDLE ==-
<6>[ 3.828002] [USB] -== OTG IRQ HANDLE ==-
<6>[ 3.829010] [USB] -== OTG IRQ HANDLE ==-
<6>[ 3.830017] [USB] -== OTG IRQ HANDLE ==-
<6>[ 3.831024] [USB] -== OTG IRQ HANDLE ==-
<6>[ 3.832000] [USB] -== OTG IRQ HANDLE ==-
<6>[ 3.833007] [USB] -== OTG IRQ HANDLE ==-
<6>[ 3.834014] [USB] -== OTG IRQ HANDLE ==-
<6>[ 3.835021] [USB] -== OTG IRQ HANDLE ==-

---------- Post added at 08:24 AM ---------- Previous post was at 07:50 AM ----------

kernel source: https://github.com/ultrasystem/UltraKernel-X