[One (M8) Q&A, Help & Troubleshooting] PearlesCENT:
It took a while, but here we are.

Not working device

u0_a148@htc_m8:/ $ su
root@htc_m8:/ # dmesg | grep -i usb
[52396.657442] c0 24815 [CABLE] htc_8974_config_usb_id_gpios: 102 output high
[52396.657481] c0 24815 [USB] htc_qpnp_adc_get_usbid_adc : vadc_chip ee9a2410
[52396.802892] c0 24815 [USB] htc_qpnp_adc_get_usbid_adc : vadc_chip ee9a2410
[52396.807629] c0 24815 [CABLE] htc_8974_config_usb_id_gpios: 102 output high
[52396.807665] c0 24815 [USB] htc_qpnp_adc_get_usbid_adc : vadc_chip ee9a2410
[52396.952887] c0 24815 [USB] htc_qpnp_adc_get_usbid_adc : vadc_chip ee9a2410
[52396.957774] c0 24815 [CABLE] htc_8974_config_usb_id_gpios: 102 output high
[52396.957813] c0 24815 [USB] htc_qpnp_adc_get_usbid_adc : vadc_chip ee9a2410
[52397.102924] c0 24815 [USB] htc_qpnp_adc_get_usbid_adc : vadc_chip ee9a2410
[52397.108066] c0 24815 [CABLE] htc_8974_config_usb_id_gpios: 102 output high
[52397.108106] c0 24815 [USB] htc_qpnp_adc_get_usbid_adc : vadc_chip ee9a2410
[52397.289252] c0 24815 [CABLE] USB Host inserted
[52397.289300] c0 24815 [CABLE] [HostNotify] Send to: usb_host: 1
[52397.289337] c0 24815 [USB] PMIC: ID set
[52397.289690] c0 31151 [USB] dwc3_msm_runtime_resume
[52397.306440] c0 31151 [USB] dwc3_ext_event_notify : init 1 ,event 1 ,id 0 ,vbus 0
[52397.306501] c0 31151 [USB] dwc3_ext_event_notify : init 1 ,event 2 ,id 0 ,vbus 0
[52397.306561] c0 31151 [USB] dwc3_otg_sm_work , state : b_idle
[52397.306621] c0 31151 [USB] dwc3_otg_sm_work , state : a_idle
[52397.307236] c0 31151 [BATT][CHG] switch_usb_to_host_mode: switch to host mode
[52397.311520] c0 1503 [BATT][CHG] qpnp_chg_coarse_det_usb_irq_handler: [irq]coarse_det_usb triggered
[52397.316533] c0 31151 xhci-hcd xhci-hcd: new USB bus registered, assigned bus number 1
[52397.327209] c0 22246 [BATT][CHG] qpnp_chg_usb_usbin_valid_irq_handler: [irq]usb_present: 0-> 1, host_mode:1, usb_target_ma=0, vin_min_detected=0, aicl_worker=0, pb_wa_ms=0, pb_wa_step=0
[52397.350378] c0 31151 usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[52397.350394] c0 31151 usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[52397.350408] c0 31151 usb usb1: Product: xHCI Host Controller
[52397.350419] c0 31151 usb usb1: Manufacturer: Linux 3.4.0-lONElyX_m8_gpe_#002 xhci-hcd
[52397.350431] c0 31151 usb usb1: SerialNumber: xhci-hcd
[52397.354523] c0 31151 hub 1-0:1.0: USB hub found
[52397.361252] c0 31151 xhci-hcd xhci-hcd: new USB bus registered, assigned bus number 2
[52397.361389] c0 31151 usb usb2: New USB device found, idVendor=1d6b, idProduct=0003
[52397.361403] c0 31151 usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[52397.361415] c0 31151 usb usb2: Product: xHCI Host Controller
[52397.361427] c0 31151 usb usb2: Manufacturer: Linux 3.4.0-lONElyX_m8_gpe_#002 xhci-hcd
[52397.361438] c0 31151 usb usb2: SerialNumber: xhci-hcd
[52397.364080] c0 31151 hub 2-0:1.0: USB hub found
[52397.673134] c0 66 usb 1-1: new full-speed USB device number 2 using xhci-hcd
[52397.673417] c0 24815 [USBH] send connect type 5
[52397.673459] c0 24815 [CABLE] usb_status_notifier_func: cable_type = 5
[52397.700761] c0 66 usb 1-1: New USB device found, idVendor=24c6, idProduct=5b02
[52397.700860] c0 66 usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[52397.700904] c0 66 usb 1-1: Product: GPX Gamepad
[52397.700940] c0 66 usb 1-1: Manufacturer: Thrustmaster[52397.700976] c0 66 usb 1-1: SerialNumber: 05F61557
[52397.881102] c0 24815 [BATT][CHG] V=3985 mV, I=270 mA, T=30 C, SoC=71%,id=138 mV,H=1,P=1,CHG=1,S=2,FSM=3,CHGR_STS=0,BUCK_STS=48,BATIF_STS=7,AC=0,USB=1,DC=0,iusb_ma=100,usb_target_ma=0,pb_drop_usb_ma=0,OVP=0,UVP=0,TM=0,usbin=5079060,vchg=3679572,eoc_count/by_curr=0/0,is_ac_ST=0,batfet_dis=0x2,pwrsrc_dis=0x1,is_full=0,temp_fault=0,bat_is_warm/cool=0/0,flag=0010,vin_min=4400,host=1,hsml_ma=0,batfet_no_lpm=0,usb_temp=0,usb_temp_vol=0
[52397.881735] c0 24815 [BATT][CHG] dump_irq_rt_status: [CHGR_INT] 0000 0000, [BUCK_INT] 1001 000, [BATIF_INT] 0111, [USB_CHGPTH] 111, [DC_CHGPTH]00, [BOOST_INT]00
[52397.882666] c0 24815 [BATT][CHG] dump_reg: VBAT_STATUS=0x2,VDD_MAX=0x6F,VDD_SAFE=0x72,IBAT_MAX=0x23,IBAT_SAFE=0x34,VIN_MIN=0x14,CHG_CTRL=0x1,ATC_CTRL=0x0,IBAT_TERM_CHGR=0x8,VBAT_DET=0x7F,TCHG_MAX_EN=0x80,TCHG_MAX=0x77,WDOG_TIME=0x20,WDOG_EN=0x0,TEMP_THRESH=0x94,CHGR_IR_DROP=0x0,VDD_MAX_COMPEN=0x6F,PRES_STATUS=0x83,TEMP_STATUS=0x80,FET_STATUS=0x83,BPD_CTRL=0x0,BTC_CTRL=0x82,USB_CHG_PTH_STS=0x96,CHG_GONE_INT=0x0,AICL_STS=0xD,AICL_I_AUTO=0x0,AICL_I_TGT=0x0,USB_OVP_CTL=0x33,IUSB_MAX=0x0,USB_SUSP=0x1,OTG_CTL=0x1,ENUM_TIMER_STOP=0x1,ENUM_TIMER=0x3,DC_CHG_PTH_STS=0x0,BOOT_DONE=0x80
[52397.888669] c0 24815 [BATT] ID=2,level=71,level_raw=71,vol=3986,temp=307,current=239044,chg_src=0,chg_en=0,full_bat=2600,over_vchg=0,batt_state=1,cable_ready=1,overload=0,ui_chg_full=0,usb_temp=285,usb_overheat=0,CFG=0x0 at 52397816350713 (2016-09-29 15:40:49.197398390 UTC)
[52409.672938] c0 11748 163: 27 dwc3, xhci-hcd:usb1
[52409.673244] c0 11748 326: 1 coarse-det-usb
[52409.673264] c0 11748 327: 1 usbin-valid
root@htc_m8:/ #

Working device

u0_a81@android:/ $ su
root@android:/ # dmesg | grep -i usb
<5>[15072.991564] (0)[57:bat_thread_kthr][Power/Battery] [upmu_is_chr_det] Charger exist but USB is host
<4>[15072.991638] (0)[57:bat_thread_kthr][MUSB] USB is ready for disconnect
<5>[15073.031102] (0)[57:bat_thread_kthr][Power/Battery] [upmu_is_chr_det] Charger exist but USB is host
<5>[15073.031148] (0)[57:bat_thread_kthr][Power/Battery] [upmu_is_chr_det] Charger exist but USB is host
<4>[15073.031193] (0)[57:bat_thread_kthr][BATTERY:AVG:fan5405] BatTemp:22 Vbat:3718 VBatSen:3679 SOC:47 ChrDet:0 Vchrin:5055 Icharging:0 ChrType:0 USBstate:1
<5>[15073.031235] (0)[57:bat_thread_kthr][Power/Battery] [upmu_is_chr_det] Charger exist but USB is host
<5>[15073.031368] (0)[57:bat_thread_kthr][Power/Battery] [upmu_is_chr_det] Charger exist but USB is host
<5>[15073.031521] (0)[57:bat_thread_kthr][Power/Battery] [upmu_is_chr_det] Charger exist but USB is host
<5>[15073.034224] (0)[57:bat_thread_kthr][Power/Battery] [upmu_is_chr_det] Charger exist but USB is host
<7>[15073.034270] (0)[57:bat_thread_kthr]power_supply usb: power_supply_changed
<7>[15073.034323] (0)[4271:kworker/0:1]power_supply usb: power_supply_changed_work
<7>[15073.034359] (0)[4271:kworker/0:1]power_supply usb: power_supply_update_gen_leds 0
<7>[15073.034403] (0)[4271:kworker/0:1]power_supply usb: uevent
<7>[15073.034428] (0)[4271:kworker/0:1]power_supply usb: POWER_SUPPLY_NAME=usb
<7>[15073.034465] (0)[4271:kworker/0:1]power_supply usb: prop ONLINE=0
<5>[15073.034824] (0)[57:bat_thread_kthr][Power/Battery] [upmu_is_chr_det] Charger exist but USB is host
<5>[15073.377538] (0)[58:mtk charger_hv_][Power/Battery] [upmu_is_chr_det] Charger exist but USB is host
<5>[15073.877691] (0)[58:mtk charger_hv_][Power/Battery] [upmu_is_chr_det] Charger exist but USB is host
<5>[15074.377832] (0)[58:mtk charger_hv_][Power/Battery] [upmu_is_chr_det] Charger exist but USB is host
<5>[15074.877978] (0)[58:mtk charger_hv_][Power/Battery] [upmu_is_chr_det] Charger exist but USB is host
<5>[15075.378168] (0)[58:mtk charger_hv_][Power/Battery] [upmu_is_chr_det] Charger exist but USB is host
<5>[15075.878318] (0)[58:mtk charger_hv_][Power/Battery] [upmu_is_chr_det] Charger exist but USB is host
<5>[15076.378457] (0)[58:mtk charger_hv_][Power/Battery] [upmu_is_chr_det] Charger exist but USB is host
<5>[15076.878599] (0)[58:mtk charger_hv_][Power/Battery] [upmu_is_chr_det] Charger exist but USB is host
<5>[15077.378743] (0)[58:mtk charger_hv_][Power/Battery] [upmu_is_chr_det] Charger exist but USB is host
<5>[15077.878879] (0)[58:mtk charger_hv_][Power/Battery] [upmu_is_chr_det] Charger exist but USB is host
<5>[15078.379031] (0)[58:mtk charger_hv_][Power/Battery] [upmu_is_chr_det] Charger exist but USB is host
<5>[15078.879168] (0)[58:mtk charger_hv_][Power/Battery] [upmu_is_chr_det] Charger exist but USB is host
<5>[15079.379314] (0)[58:mtk charger_hv_][Power/Battery] [upmu_is_chr_det] Charger exist but USB is host
<5>[15079.879456] (0)[58:mtk charger_hv_][Power/Battery] [upmu_is_chr_det] Charger exist but USB is host
<5>[15080.379604] (0)[58:mtk charger_hv_][Power/Battery] [upmu_is_chr_det] Charger exist but USB is host
<5>[15080.879743] (0)[58:mtk charger_hv_][Power/Battery] [upmu_is_chr_det] Charger exist but USB is host
<5>[15081.379895] (0)[58:mtk charger_hv_][Power/Battery] [upmu_is_chr_det] Charger exist but USB is host
<5>[15081.880847] (0)[58:mtk charger_hv_][Power/Battery] [upmu_is_chr_det] Charger exist but USB is host
<5>[15082.380948] (0)[58:mtk charger_hv_][Power/Battery] [upmu_is_chr_det] Charger exist but USB is host
<5>[15082.881093] (0)[58:mtk charger_hv_][Power/Battery] [upmu_is_chr_det] Charger exist but USB is host
<5>[15082.986628] (0)[57:bat_thread_kthr][Power/Battery] [upmu_is_chr_det] Charger exist but USB is host
<5>[15082.991352] (0)[57:bat_thread_kthr][Power/Battery] [upmu_is_chr_det] Charger exist but USB is host
<4>[15082.991427] (0)[57:bat_thread_kthr][MUSB] USB is ready for disconnect
<5>[15083.027481] (0)[57:bat_thread_kthr][Power/Battery] [upmu_is_chr_det] Charger exist but USB is host
<5>[15083.027526] (0)[57:bat_thread_kthr][Power/Battery] [upmu_is_chr_det] Charger exist but USB is host
<4>[15083.027571] (0)[57:bat_thread_kthr][BATTERY:AVG:fan5405] BatTemp:22 Vbat:3716 VBatSen:3678 SOC:47 ChrDet:0 Vchrin:5055 Icharging:0 ChrType:0 USBstate:1
<5>[15083.027613] (0)[57:bat_thread_kthr][Power/Battery] [upmu_is_chr_det] Charger exist but USB is host
<5>[15083.027691] (0)[57:bat_thread_kthr][Power/Battery] [upmu_is_chr_det] Charger exist but USB is host
<5>[15083.027841] (0)[57:bat_thread_kthr][Power/Battery] [upmu_is_chr_det] Charger exist but USB is host
<5>[15083.029948] (0)[57:bat_thread_kthr][Power/Battery] [upmu_is_chr_det] Charger exist but USB is host
<7>[15083.029994] (0)[57:bat_thread_kthr]power_supply usb: power_supply_changed
<7>[15083.030049] (0)[4271:kworker/0:1]power_supply usb: power_supply_changed_work
<7>[15083.030084] (0)[4271:kworker/0:1]power_supply usb: power_supply_update_gen_leds 0
<7>[15083.030127] (0)[4271:kworker/0:1]power_supply usb: uevent
<7>[15083.030152] (0)[4271:kworker/0:1]power_supply usb: POWER_SUPPLY_NAME=usb
<7>[15083.030191] (0)[4271:kworker/0:1]power_supply usb: prop ONLINE=0
<5>[15083.030547] (0)[57:bat_thread_kthr][Power/Battery] [upmu_is_chr_det] Charger exist but USB is host
<5>[15083.381250] (0)[58:mtk charger_hv_][Power/Battery] [upmu_is_chr_det] Charger exist but USB is host
<5>[15083.881389] (0)[58:mtk charger_hv_][Power/Battery] [upmu_is_chr_det] Charger exist but USB is host
<5>[15084.381536] (0)[58:mtk charger_hv_][Power/Battery] [upmu_is_chr_det] Charger exist but USB is host
<5>[15084.881673] (0)[58:mtk charger_hv_][Power/Battery] [upmu_is_chr_det] Charger exist but USB is host
<5>[15085.381823] (0)[58:mtk charger_hv_][Power/Battery] [upmu_is_chr_det] Charger exist but USB is host
<5>[15085.881971] (0)[58:mtk charger_hv_][Power/Battery] [upmu_is_chr_det] Charger exist but USB is host
<5>[15086.382111] (0)[58:mtk charger_hv_][Power/Battery] [upmu_is_chr_det] Charger exist but USB is host
<5>[15086.882254] (0)[58:mtk charger_hv_][Power/Battery] [upmu_is_chr_det] Charger exist but USB is host
<5>[15087.382393] (0)[58:mtk charger_hv_][Power/Battery] [upmu_is_chr_det] Charger exist but USB is host
<5>[15087.882543] (0)[58:mtk charger_hv_][Power/Battery] [upmu_is_chr_det] Charger exist but USB is host
<5>[15088.382697] (0)[58:mtk charger_hv_][Power/Battery] [upmu_is_chr_det] Charger exist but USB is host
<5>[15088.882891] (0)[58:mtk charger_hv_][Power/Battery] [upmu_is_chr_det] Charger exist but USB is host
<5>[15089.382980] (0)[58:mtk charger_hv_][Power/Battery] [upmu_is_chr_det] Charger exist but USB is host
<5>[15089.883349] (0)[58:mtk charger_hv_][Power/Battery] [upmu_is_chr_det] Charger exist but USB is host
<5>[15090.383450] (0)[58:mtk charger_hv_][Power/Battery] [upmu_is_chr_det] Charger exist but USB is host
<5>[15090.883598] (0)[58:mtk charger_hv_][Power/Battery] [upmu_is_chr_det] Charger exist but USB is host
root@android:/ #

No idea LOL.

Verstuurd vanaf mijn HTC One_M8 met Tapatalk