[Desire Android Development] akenateb:
Here is a piece of code of dmesg where we can see an example of how usb works on desire

Kernel 2.6.32.15 (NextSense)

rooted Froyo

usb on data mode

<6>[131619.981903] usb: not AC charger
<6>[131620.075073] msm72k_udc: usb: portchange USB_SPEED_HIGH
<6>[131620.075286] msm72k_udc: usb: reset
<6>[131620.075683] usb: send connect type 1
<6>[131620.075897] fsg_set_ums_state: 1
<6>[131620.076080] ums: set state 1
<6>[131620.076538] batt:online=1
<6>[131620.076751] [HTC_BATT] cable change to 1
<6>[131620.077117] batt: ds2784_notify: 0 1 at 131633745558324 (2010-09-04 19:49:29.028930670 UTC)
<6>[131620.077667] batt: charger ON (SLOW) at 131633746107641 (2010-09-04 19:49:29.029479986 UTC)
<6>[131620.233520] msm72k_udc: usb: reset
<6>[131620.235809] msm72k_udc: usb: portchange USB_SPEED_HIGH
<6>[131620.447814] android_usb gadget: high speed config #1: android
<6>[131620.448120] adb_function_set_alt: maxsize = 512
<6>[131620.449676] ums: set state 1
<6>[131620.625854] capella_cm3602_ioctl cmd 1
<6>[131620.626007] lightsensor_ioctl get enabled status: 1
<4>[131620.653808] select 265 (oid.htccontacts), adj 7, size 8457, to kill
<4>[131620.654022] select 3699 (d.apps.uploader), adj 12, size 5117, to kill
<4>[131620.654235] select 7007 (tc.android.mail), adj 12, size 5664, to kill
<4>[131620.654388] select 7365 (oid.voicedialer), adj 14, size 4683, to kill
<4>[131620.654602] select 7401 (s:FriendService), adj 14, size 6409, to kill
<4>[131620.654724] send sigkill to 7401 (s:FriendService), adj 14, size 6409
<4>[131620.852050] select 265 (oid.htccontacts), adj 7, size 8457, to kill
<4>[131620.852172] select 3699 (d.apps.uploader), adj 13, size 5117, to kill
<4>[131620.852416] select 7365 (oid.voicedialer), adj 14, size 4683, to kill
<4>[131620.852630] select 7409 (pal.androidterm), adj 14, size 5799, to kill
<4>[131620.852752] send sigkill to 7409 (pal.androidterm), adj 14, size 5799
<3>[131621.202300] init: untracked pid 7418 exited
<6>[131621.251922] __spi_bma150_set_mode: BMA get into NORMAL mode!
<4>[131621.352111] select 265 (oid.htccontacts), adj 7, size 8372, to kill
<4>[131621.352233] select 3699 (d.apps.uploader), adj 13, size 5032, to kill
<4>[131621.352539] select 7365 (oid.voicedialer), adj 14, size 4598, to kill
<4>[131621.352661] send sigkill to 7365 (oid.voicedialer), adj 14, size 4598
<6>[131622.910430] capella_cm3602_ioctl cmd 1
<6>[131622.910552] lightsensor_ioctl get enabled status: 1
<6>[131622.940460] __spi_bma150_set_mode: BMA get into SLEEP mode!
<6>[131627.420562] capella_cm3602_ioctl cmd 1
<6>[131627.420562] lightsensor_ioctl get enabled status: 1
<6>[131627.437164] capella_cm3602_ioctl cmd 1
<6>[131627.437164] lightsensor_ioctl get enabled status: 1
<6>[131627.446899] __spi_bma150_set_mode: BMA get into NORMAL mode!
<6>[131627.749877] __spi_bma150_set_mode: BMA get into SLEEP mode!
<3>[131633.382019] binder: 7051: binder_alloc_buf, no vma
<6>[131633.382141] binder: 131:148 transaction failed 29201, size 252-4
<6>[131651.437499] [HTC_BATT]RSNSP=67,RARC=45,Vol=3811mV,Current=87mA,Temp=363C(1/10)
<6>[131651.437866] batt: charging SLOW
<6>[131658.637908] msm72k_udc: usb: suspend
<6>[131659.638946] batt: M2A_RPC: cable_update: none at 131673307600555 (2010-09-04 19:50:08.590759278 UTC)
<6>[131659.640014] batt: htc_cable_status_update: 1 -> 0
<6>[131659.640380] msm_hsusb_set_vbus_state: 0
<6>[131659.641021] [HTC_BATT] cable change to 0
<6>[131659.641418] batt: ds2784_notify: 0 0
<6>[131659.641845] hsusb: ONLINE -> OFFLINE
<6>[131659.642974] usb: notify offline
<6>[131659.643524] bravo_usb_phy_reset
<6>[131659.643890] msm_hsusb_phy_reset

I have find only eclair (2.6.29) kernel sources, similar to kernel used with NextSense Froyo (2.6.32.15, i cannot find this htc kernel sources) and we can see:

kernel_bravo_54b7033a/drivers/usb/gadget/msm72k_udc.c

It seems we have got using here msm72k controller

Hope it helps a little.

R3g@rd$