Oliver Neukum wrote on Tue 26/05/20 13:13: > Hi, > > may I ask whether you did the test with removing the battery twice with > an older kernel? Could you please go back to > f6cc6093a729ede1ff5658b493237c42b82ba107 > and repeat the test of a second battery removal with that state? > I just cannot find anything pointing to a change that could cause > this issue within that time. Hi, testing with f6cc6093a729ede1ff5658b493237c42b82ba107 looks like this: =========== 1 ============= # remove battery first time [ 447.818693] usb 1-2: USB disconnect, device number 2 [ 447.856667] cdc_acm 1-2:1.3: failed to set dtr/rts # loop disconnect/connect # insert battery first time [ 481.267878] usb 1-2: new high-speed USB device number 20 using ehci-pci # turn on phone first time [ 488.984876] cdc_acm 1-2:1.3: failed to set dtr/rts [ 490.562661] usb 1-2: USB disconnect, device number 20 [ 504.341285] usb 1-2: new high-speed USB device number 21 using ehci-pci # unplug/plug USB cable - network ok =========== 2 ============= # remove battery second time [ 576.310900] usb 1-2: USB disconnect, device number 22 [ 576.334020] cdc_acm 1-2:1.3: failed to set dtr/rts # loop disconnect/connect # insert battery second time [ 606.764940] usb 1-2: new high-speed USB device number 38 using ehci-pci # turn on phone second time [ 616.398126] usb 1-2: USB disconnect, device number 38 [ 616.418763] cdc_acm 1-2:1.3: acm_port_activate - usb_submit_urb(ctrl irq) failed [ 630.208351] usb 1-2: new high-speed USB device number 39 using ehci-pci # unplug/plug USB cable - network ok =========== 3 ============= # remove battery third time [ 711.081997] usb 1-2: USB disconnect, device number 40 [ 711.099678] cdc_acm 1-2:1.3: failed to set dtr/rts # loop disconnect/connect # insert battery third time [ 744.458707] usb 1-2: new high-speed USB device number 58 using ehci-pci # turn on phone third time [ 751.195202] cdc_acm 1-2:1.3: failed to set dtr/rts [ 752.213695] cdc_acm 1-2:1.3: failed to set dtr/rts [ 752.457590] usb 1-2: USB disconnect, device number 58 # unplug/plug USB cable - network ok Interesting is, that at the second time, the usb disconnect message conmes first, and then a message from cdc_acm acm_port_activate. Regards, Jean Rene