Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/acpi EcGpeHandler: in the case that the ec is EcLock...



details:   https://anonhg.NetBSD.org/src/rev/1c03be26668f
branches:  trunk
changeset: 565951:1c03be26668f
user:      yamt <yamt%NetBSD.org@localhost>
date:      Sat Apr 24 09:07:50 2004 +0000

description:
EcGpeHandler: in the case that the ec is EcLock'ed, always set
EC_F_PENDQUERY flag so that AcpiClearGpe() will be called later.

diffstat:

 sys/dev/acpi/acpi_ec.c |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (28 lines):

diff -r d2d6faffb03c -r 1c03be26668f sys/dev/acpi/acpi_ec.c
--- a/sys/dev/acpi/acpi_ec.c    Sat Apr 24 04:56:59 2004 +0000
+++ b/sys/dev/acpi/acpi_ec.c    Sat Apr 24 09:07:50 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: acpi_ec.c,v 1.29 2004/04/22 00:17:10 itojun Exp $      */
+/*     $NetBSD: acpi_ec.c,v 1.30 2004/04/24 09:07:50 yamt Exp $        */
 
 /*
  * Copyright 2001 Wasabi Systems, Inc.
@@ -172,7 +172,7 @@
  *****************************************************************************/
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: acpi_ec.c,v 1.29 2004/04/22 00:17:10 itojun Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi_ec.c,v 1.30 2004/04/24 09:07:50 yamt Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -699,8 +699,7 @@
        simple_lock(&sc->sc_slock);
        if (sc->sc_flags & EC_F_TRANSACTION) {
                csrvalue = EC_CSR_READ(sc);
-               if (csrvalue & EC_EVENT_SCI)
-                       sc->sc_flags |= EC_F_PENDQUERY;
+               sc->sc_flags |= EC_F_PENDQUERY;
 
                if ((csrvalue & EC_FLAG_OUTPUT_BUFFER) != 0 ||
                    (csrvalue & EC_FLAG_INPUT_BUFFER) == 0) {



Home | Main Index | Thread Index | Old Index