From: Corey Minyard <minyard@acm.org>
To: Johan Hovold <johan@kernel.org>
Cc: Craig Shelley <craig@microtron.org.uk>,
Linux Kernel <linux-kernel@vger.kernel.org>,
linux-usb@vger.kernel.org
Subject: Re: Break doesn't work on a CP2105
Date: Sun, 4 Jun 2023 15:11:43 -0500 [thread overview]
Message-ID: <ZHzv/wbwtaLVpfaP@mail.minyard.net> (raw)
In-Reply-To: <ZHyAzHVAu3DVgJG_@hovoldconsulting.com>
On Sun, Jun 04, 2023 at 02:17:16PM +0200, Johan Hovold wrote:
> On Fri, Jun 02, 2023 at 11:46:56AM -0500, Corey Minyard wrote:
> > On Fri, Jun 02, 2023 at 02:53:31PM +0200, Johan Hovold wrote:
>
> > > I just posted a patch series which does that. The USB serial drivers do
> > > not currently return any errors related to break signalling even though
> > > this has been possible since 2008.
> > >
> > > The same mechanism can be used to report that break signalling is not
> > > supported by a device or driver, but the USB serial drivers would be the
> > > first tty drivers that actually do this. If it turns out to cause any
> > > trouble we can still use this series to avoid the unnecessary wait.
> > >
> > > Care to give the series a try?
> > >
> > > https://lore.kernel.org/lkml/20230602124642.19076-1-johan@kernel.org
> >
> > I have tested this series. I can verify that one of the CP2105 ports
> > (ttyUSB0) does not return an error on sending the break, and the other
> > (ttyUSB1) does. This is the only USB serial device on the system.
>
> Thanks for testing.
>
> > However, the device hooked to the remote console (ttyUSB0), the one not
> > returning an error on sending a break, still doesn't send a break. So
> > my problem isn't fixed :-(.
> >
> > # ls -l /dev/serial/by-path
> > total 0
> > lrwxrwxrwx 1 root root 13 Jun 2 15:28 pci-0000:00:1d.0-usb-0:1.1:1.0-port0 -> ../../ttyUSB0
> > lrwxrwxrwx 1 root root 13 Jun 2 15:28 pci-0000:00:1d.0-usb-0:1.1:1.1-port0 -> ../../ttyUSB1
>
> Ok, at least that matches what you found in schematics about this being
> the ECI (and thus first) port.
>
> I just verified break signalling on the first port of my CP2105 using a
> logic analyser and everything seems to work as expected.
>
> There's also no mention of any issue with break in the errata.
>
> Could you check which firmware revision you have by enabling debugging
> and reconnecting the device?
>
> For example:
>
> echo func cp210x_get_fw_version +p > /sys/kernel/debug/dynamic_debug/control
I couldn't get that to work (didn't try too hard), so I just stuck in a dev_info():
[ 4.253869] usb 2-1.2: new full-speed USB device number 3 using ehci-pci
[ 4.342570] usb 2-1.2: New USB device found, idVendor=10c4, idProduct=ea70, bcdDevice= 1.00
[ 4.350939] usb 2-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=5
[ 4.358259] usb 2-1.2: Product: CP2105 Dual USB to UART Bridge Controller
[ 4.365052] usb 2-1.2: Manufacturer: Silicon Labs
[ 4.369765] usb 2-1.2: SerialNumber: 01070456
[ 4.374925] cp210x 2-1.2:1.0: cp210x converter detected
[ 4.381086] cp210x 2-1.2:1.0: cp210x_get_fw_version - 1.18.1
[ 4.386915] usb 2-1.2: cp210x converter now attached to ttyUSB0
[ 4.393529] cp210x 2-1.2:1.1: cp210x converter detected
[ 4.399835] cp210x 2-1.2:1.1: cp210x_get_fw_version - 1.18.1
[ 4.405657] usb 2-1.2: cp210x converter now attached to ttyUSB1
This is an embedded reference board, I guess there is some probability
that this is just broken on this board, though I'm not quite sure how.
Thanks for working on this.
-corey
next prev parent reply other threads:[~2023-06-04 20:11 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-26 20:04 Break doesn't work on a CP2105 Corey Minyard
2023-04-26 23:42 ` [PATCH] USB: serial: cp210x: work around silicon bug setting break minyard
2023-05-22 11:59 ` Break doesn't work on a CP2105 Johan Hovold
2023-05-22 12:52 ` Corey Minyard
2023-06-02 12:53 ` Johan Hovold
2023-06-02 16:46 ` Corey Minyard
2023-06-04 12:17 ` Johan Hovold
2023-06-04 20:11 ` Corey Minyard [this message]
2023-06-05 7:15 ` Johan Hovold
2023-06-05 12:25 ` Corey Minyard
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=ZHzv/wbwtaLVpfaP@mail.minyard.net \
--to=minyard@acm.org \
--cc=craig@microtron.org.uk \
--cc=johan@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--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