linux-usb.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Joakim Tjernlund <Joakim.Tjernlund@infinera.com>
To: "linux-usb@vger.kernel.org" <linux-usb@vger.kernel.org>
Subject: ttyACM: disabled by hub (EMI?), re-enabling... Causes garbage chars & disconnect
Date: Mon, 25 May 2020 14:46:09 +0000	[thread overview]
Message-ID: <6a4fe396ab5ae6cda548e904c57bc823103999d7.camel@infinera.com> (raw)

Every now and then I see in dmesg:

[Wed May 20 14:03:16 2020] cdc_ether 1-6.2:1.0 usb0: unregister 'cdc_ether' usb-0000:00:14.0-6.2, CDC Ethernet Device
[Wed May 20 14:03:25 2020] usb usb1-port6: disabled by hub (EMI?), re-enabling...
[Wed May 20 14:03:25 2020] usb 1-6: USB disconnect, device number 85
[Wed May 20 14:03:25 2020] cdc_acm 1-6.3:1.1: acm_ctrl_irq - usb_submit_urb failed: -19
[Wed May 20 14:03:25 2020] usb 1-6-port2: attempt power cycle
[Wed May 20 14:03:26 2020] usb 1-6.3: USB disconnect, device number 86
[Wed May 20 14:03:26 2020] cdc_acm 1-6.3:1.1: failed to set dtr/rts
[Wed May 20 14:03:26 2020] usb 1-6: new high-speed USB device number 94 using xhci_hcd
[Wed May 20 14:03:27 2020] hub 1-6:1.0: USB hub found
[Wed May 20 14:03:27 2020] hub 1-6:1.0: 3 ports detected
[Wed May 20 14:03:27 2020] usb 1-6.2: new high-speed USB device number 95 using xhci_hcd
[Wed May 20 14:03:27 2020] cdc_ether 1-6.2:1.0 usb0: register 'cdc_ether' at usb-0000:00:14.0-6.2, CDC Ethernet Device, 7e:1d:06:c0:3f:3c
[Wed May 20 14:03:27 2020] usb 1-6.3: new high-speed USB device number 96 using xhci_hcd
[Wed May 20 14:03:27 2020] cdc_acm 1-6.3:1.1: ttyACM0: USB ACM device

This (EMI?) disconnect causes 2 things.
1) I loose the TTY temporarily and have to reconnect.
2) After reconnect there are garbage chars on the gadget side, such as:
     h�^@^@� ^@^@� ^@
   or
     X���)H��4Ğ^���
   which causes confusion on for the tty/bash on the gadget.

The disconnect is mostly just annoying but the garbage chars are a major pain, one cannot trust
that cmds are understod. Is there a bug in ttyACM driver causing these?

 Jocke

             reply	other threads:[~2020-05-25 14:46 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-25 14:46 Joakim Tjernlund [this message]
2020-05-25 15:02 ` ttyACM: disabled by hub (EMI?), re-enabling... Causes garbage chars & disconnect Oliver Neukum
2020-05-25 15:15   ` Joakim Tjernlund
2020-05-25 16:49     ` Joakim Tjernlund
2020-05-26  8:47       ` Oliver Neukum
2020-05-26  8:59         ` Joakim Tjernlund
2020-05-26 10:14           ` Oliver Neukum
2020-05-26 16:46             ` Joakim Tjernlund
2020-05-26 17:19               ` Joakim Tjernlund
2020-05-27  8:38                 ` Oliver Neukum
2020-05-27  9:40                   ` Joakim Tjernlund
2020-05-27 10:12                     ` Greg KH
2020-05-27 10:41                     ` Oliver Neukum
2020-05-27 13:16                       ` Joakim Tjernlund
2020-05-27 15:41                         ` Joakim Tjernlund
2020-06-05 10:09                           ` Joakim Tjernlund
2020-06-08  9:13                             ` Oliver Neukum
2020-06-08 11:39                               ` Joakim Tjernlund
2020-06-08 15:40                                 ` Oliver Neukum
2020-06-08 16:00                                   ` Joakim Tjernlund
2020-06-08 19:21                                     ` Oliver Neukum
2020-06-15 11:01           ` Joakim Tjernlund

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6a4fe396ab5ae6cda548e904c57bc823103999d7.camel@infinera.com \
    --to=joakim.tjernlund@infinera.com \
    --cc=linux-usb@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).