Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7d12b976 authored by Kees Cook's avatar Kees Cook Committed by Greg Kroah-Hartman
Browse files

serial: report base_baud after initialization



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: default avatarKees Cook <keescook@chromium.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 3026d14a
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -2095,12 +2095,12 @@ uart_report_port(struct uart_driver *drv, struct uart_port *port)
		break;
		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 ? dev_name(port->dev) : "",
	       port->dev ? ": " : "",
	       port->dev ? ": " : "",
	       drv->dev_name,
	       drv->dev_name,
	       drv->tty_driver->name_base + port->line,
	       drv->tty_driver->name_base + port->line,
	       address, port->irq, uart_type(port));
	       address, port->irq, port->uartclk / 16, uart_type(port));
}
}


static void
static void