From: Sonic Zhang Date: Mon, 5 Dec 2011 10:13:10 +0000 (+0800) Subject: serial: bfin-uart: Add tty ASYNC_CTS_FLOW flag to do CTS flow control. X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=ee948e379ede642b7499e78e8e30c10f90c0a1c5;p=openwrt%2Fstaging%2Fblogic.git serial: bfin-uart: Add tty ASYNC_CTS_FLOW flag to do CTS flow control. Signed-off-by: Sonic Zhang Acked-by: Alan Cox Signed-off-by: Greg Kroah-Hartman --- 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) 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)