Thread (19 messages) 19 messages, 4 authors, 2014-10-24

[PATCH 4/4] serial: mxs-auart: enable PPS support

From: Sergei Shtylyov <hidden>
Date: 2014-09-27 12:47:44
Also in: linux-devicetree, linux-serial

Hello.

On 9/27/2014 1:46 PM, Janusz Uzycki wrote:
Enables PPS support in mxs-auart serial driver to make PPS API working.
Signed-off-by: Janusz Uzycki <redacted>
---
  drivers/tty/serial/mxs-auart.c | 10 ++++++++++
  1 file changed, 10 insertions(+)
quoted hunk ↗ jump to hunk
diff --git a/drivers/tty/serial/mxs-auart.c b/drivers/tty/serial/mxs-auart.c
index ab127a2..4f1ab98 100644
--- a/drivers/tty/serial/mxs-auart.c
+++ b/drivers/tty/serial/mxs-auart.c
@@ -787,6 +787,15 @@ static void mxs_auart_settermios(struct uart_port *u,
  		mxs_auart_disable_ms(u);
  }

+static void mxs_auart_set_ldisc(struct uart_port *port, int new)
+{
+	if (new == N_PPS) {
+		port->flags |= UPF_HARDPPS_CD;
+		mxs_auart_enable_ms(port);
+	} else
+		port->flags &= ~UPF_HARDPPS_CD;
    The kernel coding style dictates that {} should be in both arms of the 
*if* statement.

[...]

WBR, Sergei
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help