* RFC: extending serial line disciplines to handle CTS changes.
@ 2010-07-08 20:18 Ben Gardiner
0 siblings, 0 replies; only message in thread
From: Ben Gardiner @ 2010-07-08 20:18 UTC (permalink / raw)
To: linux-serial, linuxpps; +Cc: Christopher Cordahi
Hi All,
I am pondering the best approach to adding PPS over CTS lines of
serial ports. We are considering using a platform where the UARTs do
not have DCD lines and so we cannot use the usual PPS serial line
discipline which has a DCD change handler. The serial ports do,
however, have CTS lines with interrupt capability.
I'm wondering if setting up the serial port to no flow control and
routing the PPS over CTS line might work.
We could configure the serial port for no flow control and extend the
serial line discipline framework to allow CTS change handlers. This
could be accomplished by adding another function pointer to struct
tty_ldisc and handing off to it at the bottom of
uart_handle_cts_change like uart_handle_dcd_change does to the
dcd_change pointer of the current struct tty_ldisc. Future patches
would probably involve adding #ifdef CONFIG_HARD_PPS to the
uart_handle_cts_change function but I think a PPS line-discipline only
would be fine for the time-being.
Best Regards,
Ben Gardiner
---
Nanometrics Inc.
http://www.nanometrics.ca
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-07-08 20:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-08 20:18 RFC: extending serial line disciplines to handle CTS changes Ben Gardiner
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).