From: "R.L. Horn" <lists@eastcheap.org>
To: linux-kernel@vger.kernel.org
Subject: Re: 2.6.25.3: serial problem (minicom)
Date: Fri, 13 Jun 2008 16:36:43 -0500 (CDT) [thread overview]
Message-ID: <alpine.LNX.1.00.0806131635260.1294@hani.compact.internal> (raw)
This is kind of an old thread, but I'm seeing something similar and, perhaps,
can throw some light on the subject.
On Fri, 16 May 2008, Andrew Morton wrote:
> On Thu, 15 May 2008 20:06:23 +0100 (BST) Chris Rankin <rankincj@yahoo.com>
> wrote:
>> I have two Linux boxes connected by a null-modem cable between their serial
>> ports; one box exports a serial console, which the other reads using the
>> minicom program. However, I have noticed that minicom can no longer use the
>> serial console when it is running on a 2.6.25.3 kernel, although it works
>> fine running on a 2.6.24.4 kernel.
>> Specifically, with minicom running on 2.6.25.3, the console does not accept
>> keystrokes although it does receive the boot log from the remote machine.
>> The serial console is being exported by a 2.6.25.3 kernel, and appears to be
>> working correctly.
> We did make some changes to serial_core.c in that timeframe which might have
> caused this, such as:
...
> Author: Yinghai Lu <Yinghai.Lu@Sun.COM> 2008-02-04 22:27:46
> Committer: Linus Torvalds <torvalds@woody.linux-foundation.org> 2008-02-05
> 09:44:09
> Parent: 149b36eae2ab6aa6056664f4bc461f3d3affc9c1 (serial: stop passing
> NULL to functions that expect data)
> Child: 9d778a69370cc1b643b13648df971c83ff5654ef (serial: avoid waking
> up closed serial ports on resume)
> Branches: many (89)
> Follows: v2.6.24
> Precedes: v2.6.25-rc1
>
> serial: keep the DTR setting for serial console.
That looks like a possibility. minicom has a DTR toggle function that drops
DTR by setting the baud rate to B0 (thereby clearing both DTR and RTS) and then
restoring the previous rate. It's called pretty early upon execution.
With kernels prior to 2.6.25 or so, resetting the baud rate would again raise
DTR and RTS, but I'm not seeing this with the current stable version (2.6.25.6
as of this writing).
Specifically:
Opening a serial device (e.g. 16550 as ttyS0) raises DTR and RTS.
Setting the baud rate to B0 clears both (as per SUS).
Subsequently setting the baud rate to something other than B0 leaves the
control lines low.
As it happens, apart from the fact that it breaks minicom, I actually prefer
this behavior.
Right now I have a patch that will fix minicom and I'm trying to convince the
maintainers to accept it. I need a definitive answer, though, as to whether
I'm seeing a bug or a feature.
If it's not too much trouble, please CC: to my address. The volume of this
list is a little overwhelming...
next reply other threads:[~2008-06-13 21:42 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-13 21:36 R.L. Horn [this message]
2008-06-14 9:29 ` 2.6.25.3: serial problem (minicom) Alan Cox
2008-06-15 7:04 ` R.L. Horn
2008-06-16 10:13 ` Alan Cox
2008-06-17 4:22 ` R.L. Horn
2008-06-17 8:58 ` Alan Cox
2008-06-17 11:03 ` R.L. Horn
2008-06-18 0:15 ` Hans-Peter Jansen
2008-06-18 17:55 ` Alan Cox
2008-06-18 20:07 ` Olivier Galibert
2008-06-19 8:20 ` R.L. Horn
2008-06-19 23:46 ` Hans-Peter Jansen
2008-06-20 11:22 ` R.L. Horn
2008-06-17 10:50 ` R.L. Horn
-- strict thread matches above, loose matches on Subject: below --
2008-05-15 19:06 Chris Rankin
2008-05-16 3:23 ` Andrew Morton
2008-05-16 7:28 ` Chris Rankin
2008-05-16 17:33 ` Jay Cliburn
2008-05-17 12:29 ` Chris Rankin
2008-05-17 13:22 ` Jay Cliburn
2008-05-17 13:32 ` Jay Cliburn
2008-05-17 14:49 ` Chris Rankin
2008-05-17 15:10 ` Jay Cliburn
2008-05-17 18:46 ` Bart Van Assche
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=alpine.LNX.1.00.0806131635260.1294@hani.compact.internal \
--to=lists@eastcheap.org \
--cc=linux-kernel@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