serial: bfin-uart: Add tty ASYNC_CTS_FLOW flag to do CTS flow control.
authorSonic Zhang <sonic.zhang@analog.com>
Mon, 5 Dec 2011 10:13:10 +0000 (18:13 +0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sat, 10 Dec 2011 03:05:32 +0000 (19:05 -0800)
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>
drivers/tty/serial/bfin_uart.c

index ff5a1dc43e08d9e0aeaf24491f636f02cd465c59..f24f8a2073d97d4673ceed106deddce9cf758baf 100644 (file)
@@ -1377,8 +1377,10 @@ static int bfin_serial_probe(struct platform_device *pdev)
                res = platform_get_resource(pdev, IORESOURCE_IO, 0);
                if (res == NULL)
                        uart->cts_pin = -1;
-               else
+               else {
                        uart->cts_pin = res->start;
+                       uart->port.flags |= ASYNC_CTS_FLOW;
+               }
 
                res = platform_get_resource(pdev, IORESOURCE_IO, 1);
                if (res == NULL)