Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pcmcia Disable power management until the bug that c...



details:   https://anonhg.NetBSD.org/src/rev/aa0119eccc8e
branches:  trunk
changeset: 472301:aa0119eccc8e
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Tue Apr 27 02:53:30 1999 +0000

description:
Disable power management until the bug that caused it to hang the
machine can be found.

Addresses kern/6488, from Thorsten Frueauf.

diffstat:

 sys/dev/pcmcia/aic_pcmcia.c |  14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)

diffs (35 lines):

diff -r 94adde789756 -r aa0119eccc8e sys/dev/pcmcia/aic_pcmcia.c
--- a/sys/dev/pcmcia/aic_pcmcia.c       Tue Apr 27 02:33:35 1999 +0000
+++ b/sys/dev/pcmcia/aic_pcmcia.c       Tue Apr 27 02:53:30 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: aic_pcmcia.c,v 1.8 1998/11/20 02:12:15 thorpej Exp $   */
+/*     $NetBSD: aic_pcmcia.c,v 1.9 1999/04/27 02:53:30 thorpej Exp $   */
 
 /*
  * Copyright (c) 1997 Marc Horowitz.  All rights reserved.
@@ -170,6 +170,7 @@
                panic("aic_pcmcia_attach: impossible");
        }
 
+#if 0  /* XXX power management broken somehow. */
        /* We can enable and disable the controller. */
        sc->sc_adapter.scsipi_enable = aic_pcmcia_enable;
 
@@ -180,6 +181,17 @@
        pcmcia_function_disable(pf);
 
        printf(": %s\n", app->app_name);
+#else
+       printf(": %s\n", app->app_name);
+
+       psc->sc_ih = pcmcia_intr_establish(psc->sc_pf, IPL_BIO,
+           aicintr, &psc->sc_aic);
+       if (psc->sc_ih == NULL) {
+               printf("%s: couldn't establish interrupt handler\n",
+                   psc->sc_aic.sc_dev.dv_xname);
+               return;
+       }
+#endif
 
        aicattach(sc);
 }



Home | Main Index | Thread Index | Old Index