Module Name:    src
Committed By:   jdolecek
Date:           Thu Apr  8 17:36:33 UTC 2021

Modified Files:
        src/sys/dev/mca: if_we_mca.c

Log Message:
update comment about the 'quirk' in we_mca_init_hook() - actually that is
just interrupt enable bit, so not a quirk at all; NFCI

info passed by Valery Ushakov from a guy running https://www.os2museum.com/wp/


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/sys/dev/mca/if_we_mca.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/mca/if_we_mca.c
diff -u src/sys/dev/mca/if_we_mca.c:1.21 src/sys/dev/mca/if_we_mca.c:1.22
--- src/sys/dev/mca/if_we_mca.c:1.21	Mon Apr 28 20:23:53 2008
+++ src/sys/dev/mca/if_we_mca.c	Thu Apr  8 17:36:33 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_we_mca.c,v 1.21 2008/04/28 20:23:53 martin Exp $	*/
+/*	$NetBSD: if_we_mca.c,v 1.22 2021/04/08 17:36:33 jdolecek Exp $	*/
 
 /*-
  * Copyright (c) 1997, 1998, 2001 The NetBSD Foundation, Inc.
@@ -53,7 +53,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_we_mca.c,v 1.21 2008/04/28 20:23:53 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_we_mca.c,v 1.22 2021/04/08 17:36:33 jdolecek Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -302,11 +302,9 @@ void
 we_mca_init_hook(struct we_softc *wsc)
 {
 	/*
-	 * This quirk really needs to be here, at least for WD8003W/A. Without
-	 * this, the card doesn't send any interrupts in 16bit mode. The quirk
+	 * Enable interrupts. This is required for at least WD8003W/A, without
+	 * this, the card doesn't send any interrupts in 16bit mode. The code
 	 * was taken from Linux smc-mca.c driver.
-	 * I do not know why it's necessary. I don't want to know. It works
-	 * and that is enough for me.
 	 */
 	bus_space_write_1(wsc->sc_asict, wsc->sc_asich, WE_LAAR, 0x04);
 	wsc->sc_laar_proto |= 0x04;

Reply via email to