Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Oct 2017 20:08:30 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r324503 - head/sys/dev/uart
Message-ID:  <201710102008.v9AK8U6V061415@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: emaste
Date: Tue Oct 10 20:08:30 2017
New Revision: 324503
URL: https://svnweb.freebsd.org/changeset/base/324503

Log:
  uart: detect 256-byte FIFOs
  
  Submitted by:	Zakary Nafziger <worldofzak@gmail.com>
  Sponsored by:	The FreeBSD Foundation

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

Modified: head/sys/dev/uart/uart_dev_ns8250.c
==============================================================================
--- head/sys/dev/uart/uart_dev_ns8250.c	Tue Oct 10 19:33:24 2017	(r324502)
+++ head/sys/dev/uart/uart_dev_ns8250.c	Tue Oct 10 20:08:30 2017	(r324503)
@@ -873,7 +873,7 @@ ns8250_bus_probe(struct uart_softc *sc)
 			count = 0;
 			goto describe;
 		}
-	} while ((lsr & LSR_OE) == 0 && count < 130);
+	} while ((lsr & LSR_OE) == 0 && count < 260);
 	count--;
 
 	uart_setreg(bas, REG_MCR, mcr);
@@ -894,6 +894,9 @@ ns8250_bus_probe(struct uart_softc *sc)
 	} else if (count >= 112 && count <= 128) {
 		sc->sc_rxfifosz = 128;
 		device_set_desc(sc->sc_dev, "16950 or compatible");
+	} else if (count >= 224 && count <= 256) {
+		sc->sc_rxfifosz = 256;
+		device_set_desc(sc->sc_dev, "16x50 with 256 byte FIFO");
 	} else {
 		sc->sc_rxfifosz = 16;
 		device_set_desc(sc->sc_dev,



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