aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial/bfin_uart.c
diff options
context:
space:
mode:
authorSonic Zhang <sonic.zhang@analog.com>2011-12-05 05:13:10 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2011-12-09 22:05:32 -0500
commitee948e379ede642b7499e78e8e30c10f90c0a1c5 (patch)
tree30a2265796c376679e1ec63582ffbdc393fe34ba /drivers/tty/serial/bfin_uart.c
parent32b4456877319fed8d5630f3db011097fd3cf7a8 (diff)
serial: bfin-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>
Diffstat (limited to 'drivers/tty/serial/bfin_uart.c')
-rw-r--r--drivers/tty/serial/bfin_uart.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/tty/serial/bfin_uart.c b/drivers/tty/serial/bfin_uart.c
index ff5a1dc43e08..f24f8a2073d9 100644
--- a/drivers/tty/serial/bfin_uart.c
+++ b/drivers/tty/serial/bfin_uart.c
@@ -1377,8 +1377,10 @@ static int bfin_serial_probe(struct platform_device *pdev)
1377 res = platform_get_resource(pdev, IORESOURCE_IO, 0); 1377 res = platform_get_resource(pdev, IORESOURCE_IO, 0);
1378 if (res == NULL) 1378 if (res == NULL)
1379 uart->cts_pin = -1; 1379 uart->cts_pin = -1;
1380 else 1380 else {
1381 uart->cts_pin = res->start; 1381 uart->cts_pin = res->start;
1382 uart->port.flags |= ASYNC_CTS_FLOW;
1383 }
1382 1384
1383 res = platform_get_resource(pdev, IORESOURCE_IO, 1); 1385 res = platform_get_resource(pdev, IORESOURCE_IO, 1);
1384 if (res == NULL) 1386 if (res == NULL)