Skip to content

Commit

Permalink
serial: bfin-sport-uart: Add tty ASYNC_CTS_FLOW flag to do CTS flow c…
Browse files Browse the repository at this point in the history
…ontrol.

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 dc8f370 commit cee3948
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/tty/serial/bfin_sport_uart.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit cee3948

Please sign in to comment.