On EA6350, usb randomly failes when connecting/disconnecting my android phone(RNDIS)
Fri Feb 5 19:08:11 2021 kern.info kernel: [ 188.327113] usb 1-1: USB disconnect, device number 2
Fri Feb 5 19:08:16 2021 kern.warn kernel: [ 193.370283] xhci-hcd xhci-hcd.0.auto: xHCI host not responding to stop endpoint command.
Fri Feb 5 19:08:16 2021 kern.warn kernel: [ 193.386595] xhci-hcd xhci-hcd.0.auto: Host halt failed, -110
Fri Feb 5 19:08:16 2021 kern.err kernel: [ 193.386755] xhci-hcd xhci-hcd.0.auto: xHCI host controller not responding, assume dead
Fri Feb 5 19:08:16 2021 kern.err kernel: [ 193.391783] xhci-hcd xhci-hcd.0.auto: HC died; cleaning up
I worked around it with this hotplug script, if anyone else hits this issue.
cat << "EOF" > /etc/hotplug.d/usb/99-usbbugfix
[ "${ACTION}" = "offline" ] && {
logger -t hotplug "*** USB BUG WORKAROUND ***" && rmmod xhci_plat_hcd && modprobe xhci_plat_hcd
}
EOF