From: Russell King <rmk@arm.linux.org.uk>
To: Martin Diehl <lists@mdiehl.de>
Cc: Jean Tourrilhes <jt@bougret.hpl.hp.com>,
Linux kernel mailing list <linux-kernel@vger.kernel.org>
Subject: Re: [Serial 2.5]: packet drop problem (FE ?)
Date: Fri, 8 Nov 2002 23:25:55 +0000 [thread overview]
Message-ID: <20021108232555.E24905@flint.arm.linux.org.uk> (raw)
In-Reply-To: <Pine.LNX.4.44.0211081308190.1320-100000@notebook.home.mdiehl.de>; from lists@mdiehl.de on Fri, Nov 08, 2002 at 11:34:18PM +0100
On Fri, Nov 08, 2002 at 11:34:18PM +0100, Martin Diehl wrote:
> The next to know is whether irtty_receive_buf() reports any "Framing or
> parity error"? IIRC with IGNPAR set we should neither get parity nor
> framing errors reported and it seems this is how serial8250_change_speed()
> deals with ignore_status_mask. But wait - yes, 8250's receive_chars()
> seems to accept the character,
Correct.
> but set TTY_FRAME anyway.
Only if INPCK is set. If it's clear, then it will ignore framing and
parity errors. (Irrespective of this, it will still internally count
them for statistical purposes, just like 2.4 used to.)
However, since INPCK is clear (from the info Jean's already sent) you'll
receive the character a TTY_NORMAL flag, even though the hardware flagged
an error.
> Ok, I think what might happen is you are receiving some kind of IR-noise
> (maybe environment, maybe reflected, maybe dongle echo) causing bytes with
> framing errors to get passed to and handled by irtty in one go with the
> beginning of the first byte(s) from the next incoming frame. Thus we
> discard the BOF and the whole frame is missed :-(
Maybe the problem is that you want to discard the bad byte (by flagging
it with a non-TTY_NORMAL flag.)
--
Russell King (rmk@arm.linux.org.uk) The developer of ARM Linux
http://www.arm.linux.org.uk/personal/aboutme.html
prev parent reply other threads:[~2002-11-08 23:19 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-07 22:47 Jean Tourrilhes
2002-11-08 0:18 ` Russell King
2002-11-08 0:41 ` Jean Tourrilhes
2002-11-08 0:49 ` Russell King
2002-11-08 0:55 ` Jean Tourrilhes
2002-11-08 2:40 ` Jean Tourrilhes
2002-11-08 22:34 ` Martin Diehl
2002-11-08 23:25 ` Russell King [this message]
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=20021108232555.E24905@flint.arm.linux.org.uk \
--to=rmk@arm.linux.org.uk \
--cc=jt@bougret.hpl.hp.com \
--cc=linux-kernel@vger.kernel.org \
--cc=lists@mdiehl.de \
/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
all inboxes | Powered by JetHome®