linux-serial.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Opening already open serial port now sets RTS and DTR?
@ 2022-02-17 15:28 Grant Edwards
  2022-02-17 15:36 ` Greg KH
  0 siblings, 1 reply; 3+ messages in thread
From: Grant Edwards @ 2022-02-17 15:28 UTC (permalink / raw)
  To: linux-serial

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.

Is there no longer any way to open an already-open serial port without
changing the state of RTS and DTR?

What was the reasoning for breaking user-application backwards
compatiblity like that?

--
Grant



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-02-17 16:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-17 15:28 Opening already open serial port now sets RTS and DTR? Grant Edwards
2022-02-17 15:36 ` Greg KH
2022-02-17 16:50   ` Grant Edwards

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).