RFC: extending serial line disciplines to handle CTS changes.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
--
To unsubscribe from this list: send the line "unsubscribe linux-serial" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux PPP]     [Linux FS]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Linmodem]     [Device Mapper]     [Linux Kernel for ARM]

  Powered by Linux