root@linaro-alip:~# echo ‘module phy_msm_usb +p’ > /sys/kernel/debug/dynamic_debug/control
root@linaro-alip:~# dmesg -n 8
root@linaro-alip:~# [ 51.487223] msm_otg 78d9000.phy: OTG_STATE_A_HOST state
[ 51.487285] msm_otg 78d9000.phy: host off
[ 51.496685] msm_hsusb_host 78d9000.ehci: remove, state 1
[ 51.594840] hub 1-0:1.0: activate → -108
[ 51.594981] hub 1-0:1.0: hub_ext_port_status failed (err = -108)
[ 51.595010] usb usb1: USB disconnect, device number 1
[ 51.612931] usb 1-1: USB disconnect, device number 2
[ 51.617280] msm_hsusb_host 78d9000.ehci: USB bus 1 deregistered
[ 51.617404] msm_otg 78d9000.phy: OTG_STATE_B_IDLE state
[ 51.623203] msm_otg 78d9000.phy: chg detection work
[ 51.730865] msm_otg 78d9000.phy: chg detection work
[ 51.774848] msm_otg 78d9000.phy: chg detection work
[ 51.818783] msm_otg 78d9000.phy: chg detection work
[ 51.818833] msm_otg 78d9000.phy: charger = 2
[ 51.822470] msm_otg 78d9000.phy: OTG_STATE_B_IDLE state
[ 51.827438] msm_otg 78d9000.phy: Avail curr from USB = 1500
[ 51.832272] msm_otg 78d9000.phy: OTG runtime idle
[ 52.862996] msm_otg 78d9000.phy: OTG runtime suspend
[ 52.863092] reg (LPM)
[ 52.867995] msm_hsusb_config_vddcx: min_vol:500000 max_vol:1320000
[ 52.869236] msm_otg 78d9000.phy: USB in low power mode
Then reboots
DO you mean if I connect an USB hub to the USB port of the board after the boot ?
If yes then:
[ 29.172655] usb 1-1.1: new high-speed USB device number 3 using msm_hsusb_host
[ 29.286357] hub 1-1.1:1.0: USB hub found
[ 29.286729] hub 1-1.1:1.0: 4 ports detected
[ 29.604575] usb 1-1.1.4: new high-speed USB device number 4 using msm_hsusb_host
[ 29.728897] hub 1-1.1.4:1.0: USB hub found
[ 29.729189] hub 1-1.1.4:1.0: 4 ports detected
[ 30.040649] usb 1-1.1.4.3: new full-speed USB device number 5 using msm_hsusb_host
[ 30.165176] hub 1-1.1.4.3:1.0: USB hub found
[ 30.165482] hub 1-1.1.4.3:1.0: 3 ports detected
[ 30.464586] usb 1-1.1.4.3.1: new full-speed USB device number 6 using msm_hsusb_host
[ 30.579264] input: Dell Dell USB Keyboard Hub as /devices/platform/soc/78d9000.ehci/usb1/1-1/1-1.1/1-1.1.4/1-1.1.4.3/1-1.1.4.3.1/1-1.1.4.3.1:1.0/0003:413C:2010.0001/input/input2
[ 30.638341] hid-generic 0003:413C:2010.0001: input: USB HID v1.10 Keyboard [Dell Dell USB Keyboard Hub] on usb-78d9000.ehci-1.1.4.3.1/input0
[ 30.645509] input: Dell Dell USB Keyboard Hub as /devices/platform/soc/78d9000.ehci/usb1/1-1/1-1.1/1-1.1.4/1-1.1.4.3/1-1.1.4.3.1/1-1.1.4.3.1:1.1/0003:413C:2010.0002/input/input3
[ 30.709545] hid-generic 0003:413C:2010.0002: input: USB HID v1.10 Device [Dell Dell USB Keyboard Hub] on usb-78d9000.ehci-1.1.4.3.1/input1
[ 32.440645] usb 1-1.1.4.4: new low-speed USB device number 7 using msm_hsusb_host
[ 32.618109] input: USB OPTICAL MOUSE as /devices/platform/soc/78d9000.ehci/usb1/1-1/1-1.1/1-1.1.4/1-1.1.4.4/1-1.1.4.4:1.0/0003:093A:2521.0003/input/input4
[ 32.677341] hid-generic 0003:093A:2521.0003: input: USB HID v1.11 Mouse [USB OPTICAL MOUSE] on usb-78d9000.ehci-1.1.4.4/input0
No crash
Even if I reconnect the USB otg to the hub it doesn’t crash
[ 16.721823] wlan0: authenticate with e0:ac:f1:c0:3b:40
[ 16.767875] wlan0: send auth to e0:ac:f1:c0:3b:40 (try 1/3)
[ 16.771782] wlan0: authenticated
[ 16.774697] wcn36xx a204000.wcnss:smd-edge:wcnss:wifi wlan0: disabling HT as WMM/QoS is not supported by the AP
[ 16.775738] wcn36xx a204000.wcnss:smd-edge:wcnss:wifi wlan0: disabling VHT as WMM/QoS is not supported by the AP
[ 16.794277] wlan0: associate with e0:ac:f1:c0:3b:40 (try 1/3)
[ 16.798739] wlan0: RX AssocResp from e0:ac:f1:c0:3b:40 (capab=0x411 status=0 aid=10)
[ 16.831973] wlan0: associated
[ 16.832174] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 17.968796] Bluetooth: RFCOMM TTY layer initialized
[ 17.968833] Bluetooth: RFCOMM socket layer initialized
[ 17.972552] Bluetooth: RFCOMM ver 1.11
[ 21.630549] msm_hsusb_host 78d9000.ehci: remove, state 4
[ 21.738202] hub 1-0:1.0: activate → -108
[ 21.738256] hub 1-0:1.0: hub_ext_port_status failed (err = -108)
[ 21.738260] usb usb1: USB disconnect, device number 1
[ 21.751979] usb 1-1: USB disconnect, device number 2
[ 21.753531] msm_hsusb_host 78d9000.ehci: USB bus 1 deregistered
[ 21.902221] msm_otg 78d9000.phy: Avail curr from USB = 100
OK after further testing, this issue happens only when the USB otg is connected to a USB 3.0 port. It works fine on a USB 2.0 port without having to unplug/replug