From: Matt Schulte <matts@commtech-fastcom.com>
To: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: Axel Hosemann <axel.hosemann@freesurf.ch>,
linux-serial@vger.kernel.org, linux-usb@vger.kernel.org
Subject: Re: Suggested patch for linux
Date: Thu, 10 Jul 2008 09:16:40 -0500 [thread overview]
Message-ID: <487619C8.7080509@commtech-fastcom.com> (raw)
In-Reply-To: <20080710095904.16dfdb08@the-village.bc.nu>
> The big problem is that the kernel does not know what is a "transmission"
> it just sees a series of writes to the device. In many cases the
> multi-drop or radio systems also need the caller to wait for a
> transmission slot either by beacon, by timing or by monitoring the
> carrier detect to avoid collisions.
I believe that he is referring to something much simpler than you are
thinking. He is talking about 2-wire RS485 transmissions in which the
RTS signal is used to enable the driver chips just before transmitting
data and disabling (tri-stating) them just after transmitting data.
There are some UARTs that have this behavior built into them.
>
> That seems to best be done in user space as the algorithms are quite
> variable and some are complex.
>
> Do we really benefit from having this in kernel ?
The problem that can come up when executing this feature in user-land
(though not exactly common) is when the hardware on the other end
responds to your message faster than your user app was able to detect
that the UART is finished and then toggle RTS. When this happens both
ends are trying to drive the line and you have bus contention, lost data
and possibly damage to the driver chips themselves.
Matt Schulte
Commtech, Inc.
http://www.commtech-fastcom.com
next prev parent reply other threads:[~2008-07-10 14:17 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-09 23:16 Suggested patch for linux Axel Hosemann
[not found] ` <487546D5.8050908-3sKltW3hOZofv37vnLkPlQ@public.gmane.org>
2008-07-10 8:59 ` Alan Cox
2008-07-10 14:16 ` Matt Schulte [this message]
2008-07-12 21:49 ` Axel Hosemann
2008-07-12 22:33 ` Alan Cox
2008-07-15 20:43 ` Matt Schulte
[not found] ` <1860bbce0807151343rf5cf4apecdc422ba747dd7d-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2008-07-15 20:46 ` Alan Cox
2008-07-18 10:19 ` Laurent Pinchart
2008-07-18 13:55 ` Grant Edwards
2008-07-10 14:47 ` Grant Edwards
2008-08-04 13:28 ` Tosoni
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=487619C8.7080509@commtech-fastcom.com \
--to=matts@commtech-fastcom.com \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=axel.hosemann@freesurf.ch \
--cc=linux-serial@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.