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:
parent
32b4456877
commit
ee948e379e
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue