All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <gregkh@linuxfoundation.org>
To: Grant Edwards <grant.b.edwards@gmail.com>
Cc: linux-serial@vger.kernel.org
Subject: Re: Opening already open serial port now sets RTS and DTR?
Date: Thu, 17 Feb 2022 16:36:57 +0100	[thread overview]
Message-ID: <Yg5rmQxl0AKCyez2@kroah.com> (raw)
In-Reply-To: <sulpi0$85i$1@ciao.gmane.io>

On Thu, Feb 17, 2022 at 03:28:00PM -0000, Grant Edwards wrote:
> It used to be that opening a serial port only set RTS and DTR if it
> was a "first open". If the port was already open, subsequent opens
> didn't mess up RTS and DTR. This was a very useful behavior in the
> embedded world where RTS and DTR are often used to power and or
> control things (reset lines, mode controls, line driver enables,
> etc.).
> 
> This seems to have changed, and now _every_ open sets RTS and DTR even
> if the port was already open and RTS and DTR had already been put in
> the desired state.

When did it change?  Any chance you can do 'git bisect' to track it
down?

And what hardware are you using here?  Different hardware works
differently in this way at times.

thanks,

greg k-h

  reply	other threads:[~2022-02-17 15:37 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-17 15:28 Opening already open serial port now sets RTS and DTR? Grant Edwards
2022-02-17 15:36 ` Greg KH [this message]
2022-02-17 16:50   ` Grant Edwards

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=Yg5rmQxl0AKCyez2@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=grant.b.edwards@gmail.com \
    --cc=linux-serial@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.