]> git.baikalelectronics.ru Git - kernel.git/commit
dt-bindings: serial: 8250: Add rate limit for serial port input overruns
authorDarwin Dingel <darwin.dingel@alliedtelesis.co.nz>
Sun, 9 Dec 2018 22:27:39 +0000 (11:27 +1300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Dec 2018 15:02:57 +0000 (16:02 +0100)
commit18da6d8f2635371d33e124811f42ddea9c7ef07c
tree4cb83385189f4d5d2b0f5c964be149ca46ea2cf2
parentc6f0ca871b1eb8e4f0930195ed53629543fda2da
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>
Documentation/devicetree/bindings/serial/8250.txt