Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Sep 2003 20:41:48 -0700 (PDT)
From:      Marcel Moolenaar <marcel@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 37472 for review
Message-ID:  <200309040341.h843fmLY050617@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=37472

Change 37472 by marcel@marcel_nfs on 2003/09/03 20:41:01

	Make sure hardware flow control (both in and out) is
	disabled when we close the device.

Affected files ...

.. //depot/projects/uart/dev/uart/uart_tty.c#13 edit

Differences ...

==== //depot/projects/uart/dev/uart/uart_tty.c#13 (text+ko) ====

@@ -469,6 +469,10 @@
 	}
 	KASSERT(tp->t_state & TS_ISOPEN, ("foo"));
 
+	if (sc->sc_hwiflow)
+		UART_IOCTL(sc, UART_IOCTL_IFLOW, 0);
+	if (sc->sc_hwoflow)
+		UART_IOCTL(sc, UART_IOCTL_OFLOW, 0);
 	if (sc->sc_sysdev == NULL)
 		UART_SETSIG(sc, UART_SIG_DDTR | UART_SIG_DRTS);
 



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