forked from luck/tmp_suning_uos_patched
serial: bfin-sport-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
dc8f3703e7
commit
cee3948d12
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user