Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Jul 2018 19:27:11 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r336648 - head/sys/dev/uart
Message-ID:  <201807231927.w6NJRBFD076553@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: imp
Date: Mon Jul 23 19:27:11 2018
New Revision: 336648
URL: https://svnweb.freebsd.org/changeset/base/336648

Log:
  Now that we set the busy_detect bit in the bas to support setting it
  for the console, set our override in the bas as well.
  
  Tested by: emaste@

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

Modified: head/sys/dev/uart/uart_dev_snps.c
==============================================================================
--- head/sys/dev/uart/uart_dev_snps.c	Mon Jul 23 18:47:04 2018	(r336647)
+++ head/sys/dev/uart/uart_dev_snps.c	Mon Jul 23 19:27:11 2018	(r336648)
@@ -107,7 +107,7 @@ snps_uart_attach(struct uart_softc *uart_sc)
 	sc = (struct snps_softc *)uart_sc;
 
 	/* UART requires to read USR reg when IIR_BUSY */
-	sc->ns8250.busy_detect = 1;
+	uart_sc->sc_bas.busy_detect = 1;
 
 	return (ns8250_bus_attach(uart_sc));
 }



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