]> Pileus Git - ~andy/linux/commitdiff
serial: report base_baud after initialization
authorKees Cook <keescook@chromium.org>
Fri, 12 Jul 2013 20:07:39 +0000 (13:07 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 26 Jul 2013 23:03:05 +0000 (16:03 -0700)
Some serial ports will not use the standard base baud rate. Report
this after initialization so it might be discovered and used for early
console configuration.

Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/serial_core.c

index 28cdd2829139270bbd5dd2b9624481c6bd32b23c..0f02351c9239b2221dbc3820b7896388a83a71a8 100644 (file)
@@ -2095,12 +2095,12 @@ uart_report_port(struct uart_driver *drv, struct uart_port *port)
                break;
        }
 
-       printk(KERN_INFO "%s%s%s%d at %s (irq = %d) is a %s\n",
+       printk(KERN_INFO "%s%s%s%d at %s (irq = %d, base_baud = %d) is a %s\n",
               port->dev ? dev_name(port->dev) : "",
               port->dev ? ": " : "",
               drv->dev_name,
               drv->tty_driver->name_base + port->line,
-              address, port->irq, uart_type(port));
+              address, port->irq, port->uartclk / 16, uart_type(port));
 }
 
 static void