public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Russell King <rmk+lkml@arm.linux.org.uk>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: Michael Westermann <michael@dvmwest.de>, linux-kernel@vger.kernel.org
Subject: Re: DTR/DSR Patch
Date: Thu, 13 Sep 2007 08:47:42 +0100	[thread overview]
Message-ID: <20070913074742.GB11938@flint.arm.linux.org.uk> (raw)
In-Reply-To: <20070912173817.7ca5c3dc.akpm@linux-foundation.org>

On Wed, Sep 12, 2007 at 05:38:17PM -0700, Andrew Morton wrote:
> On Fri, 31 Aug 2007 15:17:41 +0200
> Michael Westermann <michael@dvmwest.de> wrote:
> 
> > Hello,
> > 
> > I make driver for Point of Sale Printer, a wide range of Printer use
> > only a DTR/DSR hardware-handshaking. When I use a handshaking in the
> > userspace, the Printr has a overrun problem and our customer has a
> > problem with the tax office.
> > 
> > my Patch relaize a simple DTR/DSR handhake with a small change of the
> > code. The change auf the userspace is very simple. e.g.
> > 
> > 
> > cflags |= CDTRDSR;
> > 
> > The change of the stty tool at 2 lines.
> > 
> 
> googling for CDTRDSR is useful.  I see from
> http://lkml.org/lkml/2006/12/10/49 that Russell was generally supportive,
> but requested changes which afaict you have implemented here?

Partially implemented - my point 1 seems to have been addressed but not
point 2.  Point 2 is rather important, otherwise you can end up with a
port in stopped mode with no way to get it transmitting.

Also, it doesn't seem to be tweaking the DTR signal at all, so how does
it tell the remote end to stop transmitting?

Essentially, the author needs to search for CRTSCTS in serial_core.c and
*carefully* consider whether they need to modify those places as well.
I stress carefully, because at the moment we start the tty whenever
we move from CRTSCTS to no CRTSCTS.  If you're moving CRTSCTS->CDTRDSR
then you only want to do this iff DSR is asserted.

-- 
Russell King
 Linux kernel    2.6 ARM Linux   - http://www.arm.linux.org.uk/
 maintainer of:

      reply	other threads:[~2007-09-13  7:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-31 13:17 DTR/DSR Patch Michael Westermann
2007-09-13  0:38 ` Andrew Morton
2007-09-13  7:47   ` 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=20070913074742.GB11938@flint.arm.linux.org.uk \
    --to=rmk+lkml@arm.linux.org.uk \
    --cc=akpm@linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=michael@dvmwest.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