From: Breno Leitao <leitao@linux.vnet.ibm.com>
To: Lennart Sorensen <lsorense@csclub.uwaterloo.ca>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>,
linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: Very strange data loss with jsm driver
Date: Tue, 02 Aug 2011 11:17:52 -0300 [thread overview]
Message-ID: <4E380710.1010204@linux.vnet.ibm.com> (raw)
In-Reply-To: <20110729181337.GM8562@caffeine.csclub.uwaterloo.ca>
On 07/29/2011 03:13 PM, Lennart Sorensen wrote:
>
> It seems it can't be the tty layer, since other serial drivers seem to
> work fine. It has to be the jsm.
Well, I finally tested it over here, and what I found is:
If the line has a \r among the first 16 bytes, then the information
is TXed immediately. If there is no \r in the first 16 bytes, then the
information seems to be buffered.
So, it seems that that the patch should ask the driver to TX the
information when we receive a \r or when the buffer is full. Does it
make sense to you ?
Thanks
next prev parent reply other threads:[~2011-08-02 14:18 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-29 16:04 Very strange data loss with jsm driver Lennart Sorensen
2011-07-29 16:27 ` Alan Cox
2011-07-29 16:53 ` Lennart Sorensen
2011-07-29 18:06 ` Lennart Sorensen
2011-07-29 18:14 ` Alan Cox
2011-07-29 18:13 ` Lennart Sorensen
2011-08-02 14:17 ` Breno Leitao [this message]
2011-08-02 14:22 ` Lennart Sorensen
2011-08-02 14:23 ` Lennart Sorensen
2011-08-02 14:49 ` Breno Leitao
2011-08-02 14:52 ` Lennart Sorensen
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=4E380710.1010204@linux.vnet.ibm.com \
--to=leitao@linux.vnet.ibm.com \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-serial@vger.kernel.org \
--cc=lsorense@csclub.uwaterloo.ca \
/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).