]> git.karo-electronics.de Git - karo-tx-linux.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)
commit9aba8d5b011193c8e01d565c5b585df5b94f1db2
tree4f45580d7310ea7ea7dba87a237732f0580ecb36
parentdba05832cbe4f305dfd998fb26d7c685d91fbbd8
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