serial: bfin-sport-uart: Add tty ASYNC_CTS_FLOW flag to do CTS flow control.
authorSonic Zhang <sonic.zhang@analog.com>
Tue, 6 Dec 2011 08:22:34 +0000 (16:22 +0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sat, 10 Dec 2011 03:05:33 +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_sport_uart.c

index f6505264ad45c935df6ee2297d1f0331d9676805..7fbc3a08f10d7f7c16a6b79e833140ce33235f10 100644 (file)
@@ -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)