Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci Don't use tsleep() in attach, use delay()
details: https://anonhg.NetBSD.org/src/rev/48dcdb98bf55
branches: trunk
changeset: 539961:48dcdb98bf55
user: pooka <pooka%NetBSD.org@localhost>
date: Sat Nov 30 00:20:02 2002 +0000
description:
Don't use tsleep() in attach, use delay()
This change makes the driver work properly for the following card,
which used to function a bit weird:
eap0 at pci0 dev 10 function 0: Ensoniq CT5880 CT5880C (rev. 0x02)
eap0: interrupting at irq 9
eap0: TriTech TR28602 codec; no 3D stereo
diffstat:
sys/dev/pci/eap.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 3a781cbd251d -r 48dcdb98bf55 sys/dev/pci/eap.c
--- a/sys/dev/pci/eap.c Fri Nov 29 23:48:37 2002 +0000
+++ b/sys/dev/pci/eap.c Sat Nov 30 00:20:02 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: eap.c,v 1.58 2002/11/24 12:06:12 scw Exp $ */
+/* $NetBSD: eap.c,v 1.59 2002/11/30 00:20:02 pooka Exp $ */
/* $OpenBSD: eap.c,v 1.6 1999/10/05 19:24:42 csapuntz Exp $ */
/*
@@ -57,7 +57,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: eap.c,v 1.58 2002/11/24 12:06:12 scw Exp $");
+__KERNEL_RCSID(0, "$NetBSD: eap.c,v 1.59 2002/11/30 00:20:02 pooka Exp $");
#include "midi.h"
@@ -688,7 +688,7 @@
if (ct5880) {
EWRITE4(sc, EAP_ICSS, EAP_CT5880_AC97_RESET);
/* Let codec wake up */
- tsleep(sc, PRIBIO, "eapcdc", hz / 20);
+ delay(20000);
}
/* Reset from es1371's perspective */
Home |
Main Index |
Thread Index |
Old Index