Skip to content

Commit

Permalink
serial: bfin-uart: Add tty ASYNC_CTS_FLOW flag to do CTS flow control.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sonic Zhang authored and Greg Kroah-Hartman committed Dec 10, 2011
1 parent 32b4456 commit ee948e3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/tty/serial/bfin_uart.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ee948e3

Please sign in to comment.