From u.lilleeng@c2i.net  Sat Jan 17 08:48:06 2004
Return-Path: <u.lilleeng@c2i.net>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id C347716A4CF
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 17 Jan 2004 08:48:06 -0800 (PST)
Received: from fep02-svc.swip.net (fep02.swip.net [130.244.199.130])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 8862B43D4C
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 17 Jan 2004 08:48:03 -0800 (PST)
	(envelope-from u.lilleeng@c2i.net)
Received: from c2i.net ([193.216.52.4]) by fep02-svc.swip.net with ESMTP
          id <20040117164801.JSSI3162.fep02-svc.swip.net@c2i.net>
          for <FreeBSD-gnats-submit@freebsd.org>;
          Sat, 17 Jan 2004 17:48:01 +0100
Received: from c2i.net (localhost.faugli [127.0.0.1])
	by c2i.net (Postfix) with ESMTP id 1BC66B928
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 17 Jan 2004 17:48:35 +0100 (CET)
Received: (from u.lilleeng@localhost)
	by c2i.net (8.12.10/8.12.9/Submit) id i0HGmYPH002180;
	Sat, 17 Jan 2004 17:48:34 +0100 (CET)
Message-Id: <200401171648.i0HGmYPH002180@c2i.net>
Date: Sat, 17 Jan 2004 17:48:34 +0100 (CET)
From: Ulf Lilleengen <lulf@kerneled.com>
Reply-To: Ulf Lilleengen <lulf@kerneled.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: PATCH: problem detecting laptop-touchpad.
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         61482
>Category:       kern
>Synopsis:       PATCH: problem detecting laptop-touchpad.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jan 17 08:50:22 PST 2004
>Closed-Date:    Fri Jul 16 22:05:46 GMT 2004
>Last-Modified:  Fri Jul 16 22:05:46 GMT 2004
>Originator:     Ulf Lilleengen
>Release:        FreeBSD 5.2-RELEASE i386
>Organization:
none
>Environment:
System: FreeBSD lulflap.faugli 5.2-RELEASE FreeBSD 5.2-RELEASE #9: Tue Jan 13 21:10:22 CET 2004 lulf@lulflap.faugli:/usr/obj/usr/src/sys/LULFLAP i386

Whitebox CL 50 (Centrino, Pentium M 1500 MHz, 512 MB RAM, 60 GB 5400 RPM, )
        
>Description:
        Using a compal laptop (CL50), touchpad was not detected, together with some other laptops, which is defined in pr http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/54188 . Added ignoring for return value 3. 
>How-To-Repeat:
        Build kernel on Compal Laptops (CL50).

>Fix:
--- psm_patch.diff begins here ---
--- /usr/src/sys/isa/psm.c      Sat Jan 17 17:37:15 2004
+++ psm.c       Sat Jan 17 17:39:03 2004
@@ -627,6 +627,7 @@
     switch((i = test_aux_port(kbdc))) {
     case 1:    /* ignore this error */
     case 2:    /* ignore this error */
+    case 3:    /* ignore this error */
     case PSM_ACK:
        if (verbose)
            log(LOG_DEBUG, "psm%d: strange result for test aux port (%d).\n",
@@ -1011,10 +1012,12 @@
      * it will be detected later...
      * XXX: another incompatible controller returns PSM_ACK (0xfa)...
      * XXX: Some Acer and Toshiba notebooks returns 2...
+     * XXX: Compal CL50 laptops (and possibly others), return 3...
      */
     switch ((i = test_aux_port(sc->kbdc))) {
     case 1:       /* ignore this error */
     case 2:       /* ignore this error */
+    case 3:       /* ignore this error */
     case PSM_ACK:
         if (verbose)
            printf("psm%d: strange result for test aux port (%d).\n",
--- psm_patch.diff ends here ---


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: mux 
State-Changed-When: Fri Jul 16 22:05:31 GMT 2004 
State-Changed-Why:  
Committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=61482 
>Unformatted:
