tty: serial: 8250_core: allow to set ->throttle / ->unthrottle callbacks
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Wed, 10 Sep 2014 19:29:56 +0000 (21:29 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 26 Sep 2014 16:01:56 +0000 (18:01 +0200)
commit234abab143aef82c0ef1f2de409c0db96b666f3c
tree45580c4dd61a49fb028a1b5ecf3fa637efe34ee7
parentcc952e7017fa2e8871ee6a94f2c606ff5911f61e
tty: serial: 8250_core: allow to set ->throttle / ->unthrottle callbacks

The OMAP UART provides support for HW assisted flow control. What is
missing is the support to throttle / unthrottle callbacks which are used
by the omap-serial driver at the moment.
This patch adds the callbacks. It should be safe to add them since they
are only invoked from the serial_core (uart_throttle()) if the feature
flags are set.

Reviewed-by: Tony Lindgren <tony@atomide.com>
Tested-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_core.c
include/linux/serial_core.h