]> git.baikalelectronics.ru Git - kernel.git/commit
SERIAL: core: add throttle/unthrottle callbacks for hardware assisted flow control
authorRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 17 Apr 2012 16:23:14 +0000 (17:23 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 4 Nov 2012 11:25:56 +0000 (11:25 +0000)
commit63d8ff93ae5c98694c4d364f5d2def3ae83637c3
tree4f45580d7310ea7ea7dba87a237732f0580ecb36
parent20a178dd0d4982ad6fac9c9de5c9ee5c1238e4e0
SERIAL: core: add throttle/unthrottle callbacks for hardware assisted flow control

Add two callbacks for hardware assisted flow control; we need to know
when the tty layers want us to stop and restart due to their buffer
levels.

Call a driver specific throttle/unthrottle function if and only if the
driver indicates that it is using an enabled hardware assisted flow
control method, otherwise fall back to the non-hardware assisted
methods.

Acked-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/tty/serial/serial_core.c
include/linux/serial_core.h