summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSonic Zhang <sonic.zhang@analog.com>2011-12-06 16:22:34 +0800
committerGreg Kroah-Hartman <gregkh@suse.de>2011-12-09 19:05:33 -0800
commitcee3948d126d30341e08e935d3cc3e380088a2e8 (patch)
treecfa84547cdb712f64780a3c93b973062f867bfbb
parentdc8f3703e733f4f48553076c8615aeb004351662 (diff)
downloadlinux-3.10-cee3948d126d30341e08e935d3cc3e380088a2e8.tar.gz
linux-3.10-cee3948d126d30341e08e935d3cc3e380088a2e8.tar.bz2
linux-3.10-cee3948d126d30341e08e935d3cc3e380088a2e8.zip
serial: bfin-sport-uart: Add tty ASYNC_CTS_FLOW flag to do CTS flow control.
Signed-off-by: Sonic Zhang <sonic.zhang@analog.com> Acked-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--drivers/tty/serial/bfin_sport_uart.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/tty/serial/bfin_sport_uart.c b/drivers/tty/serial/bfin_sport_uart.c
index f6505264ad4..7fbc3a08f10 100644
--- a/drivers/tty/serial/bfin_sport_uart.c
+++ b/drivers/tty/serial/bfin_sport_uart.c
@@ -810,8 +810,10 @@ static int __devinit sport_uart_probe(struct platform_device *pdev)
res = platform_get_resource(pdev, IORESOURCE_IO, 0);
if (res == NULL)
sport->cts_pin = -1;
- else
+ else {
sport->cts_pin = res->start;
+ sport->port.flags |= ASYNC_CTS_FLOW;
+ }
res = platform_get_resource(pdev, IORESOURCE_IO, 1);
if (res == NULL)