+ serial-uartlite-initialize-port-parameters-in-console_setup.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     serial-uartlite: Initialize port parameters in console_setup
has been added to the -mm tree.  Its filename is
     serial-uartlite-initialize-port-parameters-in-console_setup.patch

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: serial-uartlite: Initialize port parameters in console_setup
From: Peter Korsgaard <jacmet@xxxxxxxxxx>

Initialize port parameters in console_setup so port timeout is set to
something sensible even if user space never calls set_termios.

Signed-off-by: Peter Korsgaard <jacmet@xxxxxxxxxx>
Cc: Olof Johansson <olof@xxxxxxxxx>
Cc: Russell King <rmk@xxxxxxxxxxxxxxxx>
Cc: Alan Cox <alan@xxxxxxxxxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 drivers/serial/uartlite.c |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletion(-)

diff -puN drivers/serial/uartlite.c~serial-uartlite-initialize-port-parameters-in-console_setup drivers/serial/uartlite.c
--- a/drivers/serial/uartlite.c~serial-uartlite-initialize-port-parameters-in-console_setup
+++ a/drivers/serial/uartlite.c
@@ -358,6 +358,10 @@ static void ulite_console_write(struct c
 static int __init ulite_console_setup(struct console *co, char *options)
 {
 	struct uart_port *port;
+	int baud = 9600;
+	int bits = 8;
+	int parity = 'n';
+	int flow = 'n';
 
 	if (co->index < 0 || co->index >= ULITE_NR_UARTS)
 		return -EINVAL;
@@ -368,7 +372,10 @@ static int __init ulite_console_setup(st
 	if (!port->membase)
 		return -ENODEV;
 
-	return 0;
+	if (options)
+		uart_parse_options(options, &baud, &parity, &bits, &flow);
+
+	return uart_set_options(port, co, baud, parity, bits, flow);
 }
 
 static struct uart_driver ulite_uart_driver;
_

Patches currently in -mm which might be from jacmet@xxxxxxxxxx are

serial-uartlite-driver.patch
serial-uartlite-driver-fix.patch
fix-serial-uartlite-after-global-pt_regs.patch
serial-uartlite-support-multiple-devices.patch
serial-uartlite-initialize-port-parameters-in-console_setup.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux