Skip to content
Commit c550f01c authored by Steve Sakoman's avatar Steve Sakoman Committed by Greg Kroah-Hartman
Browse files

serial:serial_core: Allow use of CTS for PPS line discipline



Add a "pps_4wire" file to serial ports in sysfs in case the kernel is
configured with CONFIG_PPS_CLIENT_LDISC. Writing 1 to the file enables
the use of CTS instead of DCD for PPS signal input. This is necessary
in case a serial port is not completely wired.
Though this affects PPS processing the patch is against the serial core
as the source of the serial port PPS event dispatching has to be
modified. Furthermore it should be possible to modify the source of
serial port PPS event dispatching before changing the line discipline.

Signed-off-by: default avatarAndreas Steinmetz <ast@domdv.de>
Signed-off-by: default avatarSteve Sakoman <steve@sakoman.com>
Tested-by: default avatarSteve Sakoman <steve@sakoman.com>
Tested-by: default avatarEric Gallimore <egallimore@ucsd.edu>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 669c5d8d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment