Skip to contentSkip to conversation

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

PATCH In review Sonic Zhang 2 participants 2 messages Dec 6, 2011 TTY layer and serial drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 serial: bfin-sport-uart: Add tty ASYNC_CTS_FLOW flag to do CTS flow control.

From: Sonic Zhang <[email protected]>

---
 drivers/tty/serial/bfin_sport_uart.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
drivers/tty/serial/bfin_sport_uart.c +3 -1
index f650526..7fbc3a0 100644
@@ -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)
Signature · 1 line
1.7.0.4
Acked-by on v1 1/1
#1 lore raw
Quoted 13 lines · On Tue, 6 Dec 2011 16:22:34 +0800 Sonic Zhang <[email protected]> wrote:

From: Sonic Zhang <[email protected]>

---
 drivers/tty/serial/bfin_sport_uart.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
drivers/tty/serial/bfin_sport_uart.c +0 -0
index f650526..7fbc3a0 100644
@@ -810,8 +810,10 @@ static int __devinit sport_uart_probe(struct platform_device *pdev)
 		res = platform_get_resource(pdev, IORESOURCE_IO, 0);

drivers/tty/serial/bfin_sport_uart.c static int __devinit sport_uart_probe(struct platform_device *pdev) · line 819

Quoted 10 lines
drivers/tty/serial/bfin_sport_uart.c +3 -1
 		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 == NULLA