Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci BUG FIX: pccbb turns off PC Cards' power on the ...



details:   https://anonhg.NetBSD.org/src/rev/012ade3f34a8
branches:  trunk
changeset: 499703:012ade3f34a8
user:      haya <haya%NetBSD.org@localhost>
date:      Mon Nov 27 09:04:32 2000 +0000

description:
BUG FIX: pccbb turns off PC Cards' power on the bus in shutdown hook.
Some machines cannot reboot without this fix.

diffstat:

 sys/dev/pci/pccbb.c |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r 8f7a1a2fddce -r 012ade3f34a8 sys/dev/pci/pccbb.c
--- a/sys/dev/pci/pccbb.c       Mon Nov 27 08:57:08 2000 +0000
+++ b/sys/dev/pci/pccbb.c       Mon Nov 27 09:04:32 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pccbb.c,v 1.46 2000/10/25 09:15:58 haya Exp $  */
+/*     $NetBSD: pccbb.c,v 1.47 2000/11/27 09:04:32 haya Exp $  */
 
 /*
  * Copyright (c) 1998, 1999 and 2000
@@ -364,6 +364,10 @@
        pcireg_t command;
 
        DPRINTF(("%s: shutdown\n", sc->sc_dev.dv_xname));
+
+       /* turn off power */
+       pccbb_power((cardbus_chipset_tag_t)sc, CARDBUS_VCC_0V | CARDBUS_VPP_0V);
+
        bus_space_write_4(sc->sc_base_memt, sc->sc_base_memh, CB_SOCKET_MASK,
            0);
 



Home | Main Index | Thread Index | Old Index