[General Questions and Answers] Hash_bug:
There was additional logs when detaching the dongle, so I added it as well.

:/ # dmesg -w | grep -i usb | tee -a /data/local/tmp/dmesg.log

[62387.704763] usb_state<DISCONNECTED>

[62392.824370] usb_state<DISCONNECTED>

[62397.944282] usb_state<DISCONNECTED>

[62403.067486] usb_state<DISCONNECTED>

[62408.184426] usb_state<DISCONNECTED>

[62413.304277] usb_state<DISCONNECTED>

[62418.428599] usb_state<DISCONNECTED>

[62423.557149] usb_state<DISCONNECTED>

[62428.664305] usb_state<DISCONNECTED>

[62433.660843] fusb303 7-0021: fusb303_work_handler: int_sts[0x41]

[62433.661424] fusb303 7-0021: fusb303_attach: status=0x61, status1=0x00, type=0x08[62433.661436] fusb303 7-0021: fusb303_attached_src: FUSB_STATE_ATTACHED_SRC

[62433.661443] fusb303 7-0021: fusb303_attached_src: chip->type=0x08

[62433.661732] [MUSB]otg_tcp_notifier_call 396: source vbus = 5000mv

[62433.661741] [MUSB]mt_usb_vbus_on 270: vbus_on

[62433.661749] [MUSB]issue_vbus_work 262: issue work, ops<1>, delay<0>

[62433.661825] [MUSB]_set_vbus 161: op<1>, status<0>

[62433.661838] [MUSB]otg_tcp_notifier_call 405: TCP_NOTIFY_TYPEC_STATE, old_state=0, new_state=2

[62433.661847] [MUSB]otg_tcp_notifier_call 408: OTG Plug in

[62433.661852] [MUSB]mt_usb_host_connect 372: connect

[62433.661858] [MUSB]issue_host_work 350: issue work, ops<2>, delay<0>, on_st<1>

[62433.661956] fusb303 7-0021: orientation[0x02]

[62433.662475] fusb303 7-0021: fusb303_work_handler: interrupt_1=0x00

[62433.662862] fusb303 7-0021: platform_get_device_irq_state enter

[62433.662874] fusb303 7-0021: platform_get_device_irq_state finish, state=0

[62433.663050] [MUSB]do_host_work 635: work start, is_host=0, host_on=1

[62433.665630] fusb303 7-0021: fusb303_work_handler: int_sts[0x10]

[62433.666081] fusb303 7-0021: fusb303_vbus_changed status=0x29, type=0x08

[62433.666320] fusb303 7-0021: fusb303_work_handler: interrupt_1=0x00

[62433.666682] fusb303 7-0021: platform_get_device_irq_state enter

[62433.666697] fusb303 7-0021: platform_get_device_irq_state finish, state=0

[62433.701027] usb_dpidle_request: 6 callbacks suppressed

[62433.701036] [MUSB]usb_dpidle_request 104: USB_DPIDLE_FORBIDDEN, skip_cnt<6>

[62433.701060] usb_dpidle_request: 7 callbacks suppressed

[62433.701063] [MUSB]usb_dpidle_request 97: USB_DPIDLE_ALLOWED, skip_cnt<7>

[62433.701239] [MUSB]mt_usb_set_vbus 286: is_on<1>, control<0>

[62433.701246] [MUSB]mt_usb_enable 308: begin <0,0>,<12,6,6,6>

[62433.712162] [MUSB]set_usb_phy_mode 510: force PHY to mode 1, 0x6c=3f2f

[62433.712194] [MUSB]usb_phy_recover 760: apply efuse setting, RG_USB20_INTR_CAL=0x15

[62433.712233] [MUSB]usb_phy_recover 786: usb recovery success

[62433.712238] [MUSB]mt_usb_enable 337: end, <12,6,7,6>

[62433.787718] usb_state<DISCONNECTED>

[62433.817592] [MUSB]set_usb_phy_mode 510: force PHY to mode 0, 0x6c=3f11

[62433.822617] [MUSB]set_usb_phy_mode 510: force PHY to mode 2, 0x6c=3f2d

[62433.822628] [MUSB]musb_start 1347: start, is_host=1 is_active=0

[62433.822634] [MUSB]mt_usb_enable 308: begin <1,1>,<13,6,7,6>

[62433.822650] [MUSB]musb_start 1396: set ignore babble MUSB_ULPI_REG_DATA=89

[62433.822654] [MUSB]musb_start 1404: add softconn

[62433.822659] [MUSB]do_host_work 730: work end, is_host=1

[62433.990036] [MUSB]musb_stage0_irq 1073: MUSB_INTR_CONNECT (b_idle)

[62433.990049] QMU_WARN,<musb_disable_q_all 336>, disable_q_all

[62433.990082] [MUSB]musb_stage0_irq 1156: CONNECT (a_host) devctl 5d

[62433.990150] [MUSB]musb_hub_control 370: port status 00010101,devctl=0x5d

[62434.094291] [MUSB]musb_hub_control 370: port status 00000101,devctl=0x5d

[62434.094376] [MUSB]musb_port_reset 129: force musb_platform_reset

[62434.160954] [MUSB]musb_hub_control 370: port status 00120503,devctl=0x5d

[62434.220950] usb 1-1: new high-speed USB device number 7 using musb-hdrc

[62434.221124] [MUSB]musb_port_reset 129: force musb_platform_reset

[62434.291045] [MUSB]musb_hub_control 370: port status 00120503,devctl=0x5d

[62434.384482] [MUSB]musb_port_reset 129: force musb_platform_reset

[62434.454349] [MUSB]musb_hub_control 370: port status 00120503,devctl=0x5d

[62434.510960] usb 1-1: reset high-speed USB device number 7 using musb-hdrc

[62434.511206] [MUSB]musb_port_reset 129: force musb_platform_reset

[62434.580990] [MUSB]musb_hub_control 370: port status 00120503,devctl=0x5d

[62434.665263] ueventd: firmware: loading 'mt7601u.bin' for '/devices/platform/mt_usb/musb-hdrc/usb1/1-1/1-1:1.0/firmware/mt7601u.bin'

[62434.667605] ueventd: loading /devices/platform/mt_usb/musb-hdrc/usb1/1-1/1-1:1.0/firmware/mt7601u.bin took 2ms

[62435.010979] [MUSB]musb_urb_dequeue 3150: urb<0000000046fb0cc9>,dev<7>,ep<0in>,qh<000000004345821e>,rdy<1>,prev<0>,cur<1>

[62435.283009] BOOTPROF: 62435283.000465:probe: probe=usb_probe_interface drv=mt7601u(0xffffff8d2bd4f1e0) 898.550387ms

[62435.284007] BOOTPROF: 62435283.999849:probe: probe=usb_probe_device drv=usb(0xffffff8d2bd5dd38) 900.235079ms

[62435.284729] [MUSB]musb_hub_control 370: port status 00020503,devctl=0x5d

[62438.904269] usb_state<DISCONNECTED>

[62443.923012] [MUSB]usb20_check_vbus_on 141: vbus_on<1>

[62444.027668] usb_state<DISCONNECTED>

[62444.151056] [MUSB]usb20_check_vbus_on 141: vbus_on<1>

[62444.180467] [MUSB]usb20_check_vbus_on 141: vbus_on<1>

[62449.144369] usb_state<DISCONNECTED>

[62454.264326] usb_state<DISCONNECTED>

[62459.384282] usb_state<DISCONNECTED>

[62464.507794] usb_state<DISCONNECTED>

[62469.624419] usb_state<DISCONNECTED>

[62474.744284] usb_state<DISCONNECTED>

[62479.864322] usb_state<DISCONNECTED>

[62482.033275] fusb303 7-0021: fusb303_work_handler: int_sts[0x02]

[62482.033289] fusb303 7-0021: fusb303_detach: chip->type=0x08, chip->state=0x07

[62482.033307] fusb303 7-0021: fusb303_detach: typec_attach_old= 2

[62482.033411] pd_tcp_notifier_call USB Plug out

[62482.033430] [MUSB]mt_usb_disconnect 644: [MUSB] USB disconnect

[62482.033436] [MUSB]issue_connection_work 632: issue work, ops<0>

[62482.033494] [MUSB]do_connection_work 536: is_host<1>, power<1>, ops<0>

[62482.033511] [MUSB]usb_cable_connected 503: connected=0 vbus_exist=0 type=0

[62482.033517] [MUSB]cmode_effect_on 523: cable_mode=1, effect=0

[62482.033522] [MUSB]do_connection_work 561: is host, return

[62482.033614] fusb303 7-0021: fusb303_work_handler: interrupt_1=0x00

[62482.033988] fusb303 7-0021: platform_get_device_irq_state enter

[62482.034005] fusb303 7-0021: platform_get_device_irq_state finish, state=0

[62482.034910] [MUSB]musb_stage0_irq 1162: DISCONNECT (a_host) as Host, devctl 19

[62482.034917] QMU_WARN,<musb_disable_q_all 336>, disable_q_all

[62482.034941] [MUSB]musb_h_pre_disable 3346: disable all endpoints

[62482.034954] [MUSB]musb_h_disable 3265: qh:00000000c38f3b99, is_in:80, epnum:2, hep<0000000042eb5bdd>

[62482.034960] [MUSB]musb_h_disable 3301: list_empty<0>, urb<00000000a0c841d3,0,-108>

[62482.034984] [MUSB]musb_h_disable 3265: qh:0000000032909f06, is_in:80, epnum:3, hep<00000000a4406eff>

[62482.034990] [MUSB]musb_h_disable 3301: list_empty<0>, urb<000000007351d683,0,-108>

[62482.035076] [MUSB]musb_root_disconnect 208: host disconnect (a_host)

[62482.035082] [MUSB]mt_usb_try_idle 262: skip mt_usb_try_idle

[62482.039020] [MUSB]musb_hub_control 370: port status 00010100,devctl=0x19

[62482.039152] fusb303 7-0021: fusb303_get_mode: Invaild type[0x00]

[62482.039168] dhx---fusb303 get typec mode type:0, reg:0

[62482.039411] [MUSB]mt_usb_disconnect 644: [MUSB] USB disconnect

[62482.039415] [MUSB]issue_connection_work 632: issue work, ops<0>

[62482.039456] smb1351_set_usbsw_state: smb1351_set_usbsw_state: state = usb

[62482.039467] [MUSB]Charger_Detect_Release 832: Charger_Detect_Release

[62482.039478] [MUSB]otg_tcp_notifier_call 405: TCP_NOTIFY_TYPEC_STATE, old_state=2, new_state=0

[62482.039481] [MUSB]otg_tcp_notifier_call 414: OTG Plug out

[62482.039484] [MUSB]mt_usb_host_disconnect 383: disconnect

[62482.039489] [MUSB]issue_host_work 350: issue work, ops<0>, delay<0>, on_st<1>

[62482.039499] [MUSB]do_connection_work 536: is_host<1>, power<1>, ops<0>

[62482.039508] [MUSB]usb_cable_connected 503: connected=0 vbus_exist=0 type=0

[62482.039513] [MUSB]cmode_effect_on 523: cable_mode=1, effect=0

[62482.039516] [MUSB]do_connection_work 561: is host, return

[62482.039532] [MUSB]otg_tcp_notifier_call 396: source vbus = 0mv

[62482.039535] [MUSB]mt_usb_vbus_off 276: vbus_off

[62482.039540] [MUSB]issue_vbus_work 262: issue work, ops<0>, delay<0>

[62482.039546] [MUSB]do_host_work 635: work start, is_host=1, host_on=0

[62482.039557] [MUSB]mt_usb_set_vbus 286: is_on<0>, control<0>

[62482.039566] [MUSB]set_usb_phy_mode 510: force PHY to mode 0, 0x6c=3f11

[62482.039614] [MUSB]mt_usb_disable 348: begin, <1,1>,<13,7,7,6>

[62482.040031] usb 1-1: USB disconnect, device number 7

[62482.040440] [MUSB]set_usb_phy_mode 510: force PHY to mode 0, 0x6c=3f11

[62482.040445] [MUSB]usb_phy_savecurrent 666: usb save current success

[62482.040474] usb_dpidle_request: 4 callbacks suppressed

[62482.040478] [MUSB]usb_dpidle_request 97: USB_DPIDLE_ALLOWED, skip_cnt<4>

[62482.040483] [MUSB]mt_usb_disable 360: end, <13,7,7,7>

[62482.040487] [MUSB]musb_stop 1566: HDRC disabled

[62482.040491] [MUSB]mt_usb_try_idle 262: skip mt_usb_try_idle

[62482.047477] fusb303 7-0021: fusb303_get_mode: Invaild type[0x00]

[62482.047492] dhx---fusb303 get typec mode type:0, reg:0

[62482.054875] fusb303 7-0021: fusb303_work_handler: int_sts[0x10]

[62482.055373] fusb303 7-0021: fusb303_vbus_changed status=0x40, type=0x00

[62482.055881] fusb303 7-0021: fusb303_detach: chip->type=0x00, chip->state=0x07

[62482.055894] fusb303 7-0021: fusb303_detach: typec_attach_old= 0

[62482.056155] fusb303 7-0021: fusb303_work_handler: interrupt_1=0x00

[62482.056560] fusb303 7-0021: platform_get_device_irq_state enter

[62482.056573] fusb303 7-0021: platform_get_device_irq_state finish, state=0

[62482.057321] pd_tcp_notifier_call USB Plug out

[62482.057336] [MUSB]mt_usb_disconnect 644: [MUSB] USB disconnect

[62482.057341] [MUSB]issue_connection_work 632: issue work, ops<0>

[62482.057738] fusb303 7-0021: fusb303_get_mode: Invaild type[0x00]

[62482.057749] dhx---fusb303 get typec mode type:0, reg:0

[62482.060725] [MUSB]mt_usb_disconnect 644: [MUSB] USB disconnect

[62482.060731] [MUSB]issue_connection_work 632: issue work, ops<0>

[62482.061281] fusb303 7-0021: fusb303_get_mode: Invaild type[0x00]

[62482.061297] dhx---fusb303 get typec mode type:0, reg:0

[62482.062414] smb1351_set_usbsw_state: smb1351_set_usbsw_state: state = usb

[62482.062461] usb_dpidle_request: 6 callbacks suppressed

[62482.062465] [MUSB]usb_dpidle_request 104: USB_DPIDLE_FORBIDDEN, skip_cnt<6>

[62482.062489] [MUSB]Charger_Detect_Release 832: Charger_Detect_Release

[62482.062499] [MUSB]otg_tcp_notifier_call 405: TCP_NOTIFY_TYPEC_STATE, old_state=0, new_state=0

[62482.077794] [MUSB]do_host_work 730: work end, is_host=0

[62482.077858] [MUSB]_set_vbus 161: op<0>, status<1>

[62482.078866] [MUSB]do_connection_work 536: is_host<0>, power<0>, ops<0>

[62482.078883] [MUSB]usb_cable_connected 503: connected=0 vbus_exist=0 type=0

[62482.078886] [MUSB]cmode_effect_on 523: cable_mode=1, effect=0

[62482.078888] [MUSB]do_connection_work 598: do nothing, usb_on:0, power:0

[62482.078893] [MUSB]do_connection_work 536: is_host<0>, power<0>, ops<0>

[62482.078897] [MUSB]usb_cable_connected 503: connected=0 vbus_exist=0 type=0

[62482.078899] [MUSB]cmode_effect_on 523: cable_mode=1, effect=0

[62482.078901] [MUSB]do_connection_work 598: do nothing, usb_on:0, power:0

[62482.093994] [MUSB]musb_hub_control 370: port status 00000100,devctl=0x80

[62482.130961] [MUSB]musb_hub_control 370: port status 00000100,devctl=0x80

[62482.164284] [MUSB]musb_hub_control 370: port status 00000100,devctl=0x80

[62482.197642] [MUSB]musb_hub_control 370: port status 00000100,devctl=0x80

[62482.230957] [MUSB]musb_hub_control 370: port status 00000100,devctl=0x80

[62484.984303] usb_state<DISCONNECTED>

[62490.104262] usb_state<DISCONNECTED>

[62495.224263] usb_state<DISCONNECTED>

[62500.344317] usb_state<DISCONNECTED>

[62505.464382] usb_state<DISCONNECTED>

56] [MUSB]usb20_check_vbus_on 141: vbus_on<1>

[62444.180467] [MUSB]usb20_check_vbus_on 141: vbus_on<1>

[62510.584481] usb_state<DISCONNECTED>