Subject: Re: pmsprobe: reset response 0xfa
To: None <port-i386@netbsd.org>
From: Jared D. McNeill <jmcneill@invisible.yi.org>
List: port-i386
Date: 01/11/2001 22:14:37
On Thu, 11 Jan 2001, Jared D. McNeill wrote:
>  pmsprobe: reset response 0xfa

Fixed it already ;-) Patches to 1.5.1_ALPHA are below. Can someone have a
look to make sure they're acceptable?

These patches are to be applied in sys/dev/pckbc/

Jared

--- psm.c.orig	Thu Jan 11 21:30:56 2001
+++ psm.c	Thu Jan 11 21:38:40 2001
@@ -94,7 +94,20 @@
 #endif
 		return (0);
 	}
-	if (resp[0] != PMS_RSTDONE) {
+	switch (resp[0]) {
+	/*
+	 * XXX: Some incompatible controllers return non-zero responses.
+	 * This behavior has been noted on the AST Ascentia 910N laptop
+	 */
+	case PMS_ACK:
+#ifdef DEBUG
+		printf("pmsprobe: strange controller reset response 0x%x",
+		    resp[0]);
+#endif
+		/* FALLTHROUGH */
+	case PMS_RSTDONE:
+		break;
+	default:
 		printf("pmsprobe: reset response 0x%x\n", resp[0]);
 		return (0);
 	}

--- psmreg.h.orig	Thu Jan 11 21:40:21 2001
+++ psmreg.h	Thu Jan 11 21:40:32 2001
@@ -17,3 +17,4 @@
 #define	PMS_RESET	0xff	/* reset */

 #define	PMS_RSTDONE	0xaa
+#define	PMS_ACK		0xfa