From: Russell King <rmk+lkml@arm.linux.org.uk>
To: moreau francis <francis_moreau2000@yahoo.fr>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [UART] 8250:RTS/CTS flow control issue.
Date: Thu, 17 Mar 2005 09:57:28 +0000 [thread overview]
Message-ID: <20050317095728.A29592@flint.arm.linux.org.uk> (raw)
In-Reply-To: <20050315160554.2871.qmail@web25104.mail.ukl.yahoo.com>; from francis_moreau2000@yahoo.fr on Tue, Mar 15, 2005 at 05:05:54PM +0100
On Tue, Mar 15, 2005 at 05:05:54PM +0100, moreau francis wrote:
> Does it mean that we can't do any reliable flow
> controls with 8250 UART ? In that case a simple
> workaround would be to limit tx fifo to 1 byte...
With a popular 8250 UART on the other end, you need to ensure that
you disable the CTS signal with sufficient time (== at least the
number of bytes in the transmit FIFO) so that the transmission stops.
This is because many 8250 UARTs don't have any hardware linkage
between the CTS signal and the transmitter. Later 8250 UARTs which
do have automatic hardware flow control allow for this, as do
most other serial peripherals.
I, therefore, strongly suggest that you arrange to do the same -
iow, deassert RTS when your buffer is approaching approx. 2/3 full
rather than absolutely full.
--
Russell King
Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/
maintainer of: 2.6 Serial core
next prev parent reply other threads:[~2005-03-17 9:57 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-15 16:05 moreau francis
2005-03-17 9:57 ` Russell King [this message]
2005-03-17 14:34 moreau francis
2005-03-17 16:17 ` Russell King
2005-03-18 9:30 moreau francis
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=20050317095728.A29592@flint.arm.linux.org.uk \
--to=rmk+lkml@arm.linux.org.uk \
--cc=francis_moreau2000@yahoo.fr \
--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
Powered by JetHome