linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 1/2] serial: 8250: Add dts binding to rate limit serial port during overruns
@ 2018-12-05  0:50 Darwin Dingel
  2018-12-05  0:50 ` [PATCH v2 2/2] serial: 8250: Rate limit serial port rx interrupts during input overruns Darwin Dingel
  0 siblings, 1 reply; 3+ messages in thread
From: Darwin Dingel @ 2018-12-05  0:50 UTC (permalink / raw)
  To: andriy.shevchenko, gregkh, jslaby, linux-serial
  Cc: linux-kernel, Darwin Dingel

When this dts binding is enabled and input overrun on the serial port is
detected, serial port receive will be throttled to give some breathing room
for processing other tasks. This is particularly useful to avoid situations
where serial port HW malfunctions triggering input overruns and then other
processes get starved of processing time. Value provided will be in
milliseconds.

&serial0{
	overrun-throttle-ms = <500>;
};

Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Jiri Slaby <jslaby@suse.com>
Signed-off-by: Darwin Dingel <darwin.dingel@alliedtelesis.co.nz>
---
 Documentation/devicetree/bindings/serial/8250.txt | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/serial/8250.txt b/Documentation/devicetree/bindings/serial/8250.txt
index aeb6db4e35c3..da50321da34d 100644
--- a/Documentation/devicetree/bindings/serial/8250.txt
+++ b/Documentation/devicetree/bindings/serial/8250.txt
@@ -51,6 +51,7 @@ Optional properties:
 - tx-threshold: Specify the TX FIFO low water indication for parts with
   programmable TX FIFO thresholds.
 - resets : phandle + reset specifier pairs
+- overrun-throttle-ms : how long to pause uart rx when input overrun is encountered.
 
 Note:
 * fsl,ns16550:
-- 
2.19.2

changes in v2:
- separated dts binding to another patch

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-12-05  1:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-05  0:50 [PATCH v2 1/2] serial: 8250: Add dts binding to rate limit serial port during overruns Darwin Dingel
2018-12-05  0:50 ` [PATCH v2 2/2] serial: 8250: Rate limit serial port rx interrupts during input overruns Darwin Dingel
2018-12-05  1:41   ` Darwin Dingel

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).