Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci Sleep a little when closing the midi device to a...
details: https://anonhg.NetBSD.org/src/rev/994ff8c89c87
branches: trunk
changeset: 502956:994ff8c89c87
user: augustss <augustss%NetBSD.org@localhost>
date: Sat Jan 27 18:37:01 2001 +0000
description:
Sleep a little when closing the midi device to allow the UART to drain.
diffstat:
sys/dev/pci/cs4280.c | 4 +++-
sys/dev/pci/eap.c | 3 ++-
2 files changed, 5 insertions(+), 2 deletions(-)
diffs (42 lines):
diff -r 6626bb3fd504 -r 994ff8c89c87 sys/dev/pci/cs4280.c
--- a/sys/dev/pci/cs4280.c Sat Jan 27 17:06:31 2001 +0000
+++ b/sys/dev/pci/cs4280.c Sat Jan 27 18:37:01 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cs4280.c,v 1.12 2001/01/18 20:28:15 jdolecek Exp $ */
+/* $NetBSD: cs4280.c,v 1.13 2001/01/27 18:37:01 augustss Exp $ */
/*
* Copyright (c) 1999, 2000 Tatoku Ogaito. All rights reserved.
@@ -65,6 +65,7 @@
#include <sys/fcntl.h>
#include <sys/malloc.h>
#include <sys/device.h>
+#include <sys/proc.h>
#include <sys/types.h>
#include <sys/systm.h>
@@ -1886,6 +1887,7 @@
u_int32_t mem;
DPRINTF(("midi_close\n"));
+ tsleep(sc, PWAIT, "cs0clm", hz/10); /* give uart a chance to drain */
mem = BA0READ4(sc, CS4280_MIDCR);
mem &= ~MIDCR_MASK;
BA0WRITE4(sc, CS4280_MIDCR, mem);
diff -r 6626bb3fd504 -r 994ff8c89c87 sys/dev/pci/eap.c
--- a/sys/dev/pci/eap.c Sat Jan 27 17:06:31 2001 +0000
+++ b/sys/dev/pci/eap.c Sat Jan 27 18:37:01 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: eap.c,v 1.42 2000/12/28 22:59:12 sommerfeld Exp $ */
+/* $NetBSD: eap.c,v 1.43 2001/01/27 18:37:01 augustss Exp $ */
/* $OpenBSD: eap.c,v 1.6 1999/10/05 19:24:42 csapuntz Exp $ */
/*
@@ -1770,6 +1770,7 @@
{
struct eap_softc *sc = addr;
+ tsleep(sc, PWAIT, "eapclm", hz/10); /* give uart a chance to drain */
EWRITE1(sc, EAP_UART_CONTROL, 0);
EWRITE4(sc, EAP_ICSC, EREAD4(sc, EAP_ICSC) & ~EAP_UART_EN);
Home |
Main Index |
Thread Index |
Old Index