Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Mar 2014 03:20:11 +0000 (UTC)
From:      Marcel Moolenaar <marcel@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r262996 - head/sys/dev/uart
Message-ID:  <201403110320.s2B3KBqu023414@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: marcel
Date: Tue Mar 11 03:20:10 2014
New Revision: 262996
URL: http://svnweb.freebsd.org/changeset/base/262996

Log:
  Pass the actual baudrate to tty_init_console(). This defines the initial
  baudrate of the device special file, and makes sure that on open(2) the
  UART is programmed with the correct baudrate. This then eliminates the
  need in uart_tty_param() to override the speed setting.

Modified:
  head/sys/dev/uart/uart_tty.c

Modified: head/sys/dev/uart/uart_tty.c
==============================================================================
--- head/sys/dev/uart/uart_tty.c	Tue Mar 11 03:19:43 2014	(r262995)
+++ head/sys/dev/uart/uart_tty.c	Tue Mar 11 03:20:10 2014	(r262996)
@@ -386,7 +386,7 @@ uart_tty_attach(struct uart_softc *sc)
 	if (sc->sc_sysdev != NULL && sc->sc_sysdev->type == UART_DEV_CONSOLE) {
 		sprintf(((struct consdev *)sc->sc_sysdev->cookie)->cn_name,
 		    "ttyu%r", unit);
-		tty_init_console(tp, 0);
+		tty_init_console(tp, sc->sc_sysdev->baudrate);
 	}
 
 	swi_add(&tty_intr_event, uart_driver_name, uart_tty_intr, sc, SWI_TTY,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201403110320.s2B3KBqu023414>