serial: bfin-uart: Add tty ASYNC_CTS_FLOW flag to do CTS flow control.

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>
This commit is contained in:
Sonic Zhang 2011-12-05 18:13:10 +08:00 committed by Greg Kroah-Hartman
parent 32b4456877
commit ee948e379e

View file

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