Thread (5 messages) 5 messages, 1 author, 2019-02-20
STALE2679d

[PATCH 2/9] Documentation: serial-rs485: document SER_RS485_DELAY_IN_USEC flag

From: Martin Kepplinger <hidden>
Date: 2019-02-20 15:28:12
Also in: linux-arm-kernel, linux-devicetree, lkml
Subsystem: documentation, the rest · Maintainers: Jonathan Corbet, Linus Torvalds

Document the new RS485 flag, SER_RS485_DELAY_IN_USEC that specifies that the
rts delay values stored in struct serial_rs485 hold values in microseconds
instead of milliseconds (the default).

Signed-off-by: Martin Kepplinger <redacted>
---
 Documentation/serial/serial-rs485.txt | 3 +++
 1 file changed, 3 insertions(+)
diff --git a/Documentation/serial/serial-rs485.txt b/Documentation/serial/serial-rs485.txt
index ce0c1a9b8aab..a1e15e9efc2e 100644
--- a/Documentation/serial/serial-rs485.txt
+++ b/Documentation/serial/serial-rs485.txt
@@ -75,6 +75,9 @@
 	/* Set rts delay after send, if needed: */
 	rs485conf.delay_rts_after_send = ...;
 
+	/* Specify the rts delay to be microseconds, not milliseconds */
+	rs485conf.flags |= SER_RS485_DELAY_IN_USEC;
+
 	/* Set this flag if you want to receive data even while sending data */
 	rs485conf.flags |= SER_RS485_RX_DURING_TX;
 
-- 
2.20.1

Attachments

  • smime.p7s [application/x-pkcs7-signature] 3616 bytes
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help