Enable the UPF_BOOT_AUTOCONF flag in serial_omap_probe().
This will cause serial_omap_config_port() to be run and
the hardware to correctly be flagged as supporting hardware
and software flow-control.
Without this, it is not possible to enable flow control.
Signed-off-by: Greg Farrell <greg@xxxxxxxxxxxxxxx>
---
drivers/tty/serial/omap-serial.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/drivers/tty/serial/omap-serial.c
b/drivers/tty/serial/omap-serial.c
index b645f92..5e82238 100644
--- a/drivers/tty/serial/omap-serial.c
+++ b/drivers/tty/serial/omap-serial.c
@@ -1664,7 +1664,10 @@ static int serial_omap_probe(struct
platform_device *pdev)
sprintf(up->name, "OMAP UART%d", up->port.line);
up->port.mapbase = mem->start;
up->port.membase = base;
- up->port.flags = omap_up_info->flags;
+ /*
+ * Enable UPF_BOOT_AUTOCONF so that serial_omap_config_port will
execute
+ */
+ up->port.flags = omap_up_info->flags | UPF_BOOT_AUTOCONF;
up->port.uartclk = omap_up_info->uartclk;
up->port.rs485_config = serial_omap_config_rs485;
if (!up->port.uartclk) {
--
1.9.1
From f226aec190952473840349915708671c80f3e395 Mon Sep 17 00:00:00 2001
From: Greg Farrell <greg@xxxxxxxxxxxxxxx>
Date: Mon, 25 Jan 2016 11:43:44 +0000
Subject: [PATCH] Enable OMAP UART port UPF_BOOT_AUTOCONF auto-configuration
Enable the UPF_BOOT_AUTOCONF flag in serial_omap_probe().
This will cause serial_omap_config_port() to be run and
the hardware to correctly be flagged as supporting hardware
and software flow-control.
Without this, it is not possible to enable flow control.
Signed-off-by: Greg Farrell <greg@xxxxxxxxxxxxxxx>
---
drivers/tty/serial/omap-serial.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/drivers/tty/serial/omap-serial.c b/drivers/tty/serial/omap-serial.c
index b645f92..5e82238 100644
--- a/drivers/tty/serial/omap-serial.c
+++ b/drivers/tty/serial/omap-serial.c
@@ -1664,7 +1664,10 @@ static int serial_omap_probe(struct platform_device *pdev)
sprintf(up->name, "OMAP UART%d", up->port.line);
up->port.mapbase = mem->start;
up->port.membase = base;
- up->port.flags = omap_up_info->flags;
+ /*
+ * Enable UPF_BOOT_AUTOCONF so that serial_omap_config_port will execute
+ */
+ up->port.flags = omap_up_info->flags | UPF_BOOT_AUTOCONF;
up->port.uartclk = omap_up_info->uartclk;
up->port.rs485_config = serial_omap_config_rs485;
if (!up->port.uartclk) {
--
1.9.1