Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: serial: 8250: Add rate limit for serial port input overruns

When a serial port continuously experiences input overrun from
(1) continuous receive characters from remote and or (2) hardware
issues, its interrupt handler can preempt other tasks especially
when the system is busy (ie. boot up period). This can cause other
tasks to get starved of processing time from the CPU.

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. Value provided will be in milliseconds.

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

Signed-off-by: Darwin Dingel <darwin.dingel@alliedtelesis.co.nz>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Darwin Dingel and committed by
Greg Kroah-Hartman
bdb48e4c 64a42807

+1
+1
Documentation/devicetree/bindings/serial/8250.txt
··· 51 51 - tx-threshold: Specify the TX FIFO low water indication for parts with 52 52 programmable TX FIFO thresholds. 53 53 - resets : phandle + reset specifier pairs 54 + - overrun-throttle-ms : how long to pause uart rx when input overrun is encountered. 54 55 55 56 Note: 56 57 * fsl,ns16550: