summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorhaya <haya@NetBSD.org>2000-11-27 09:04:32 +0000
committerhaya <haya@NetBSD.org>2000-11-27 09:04:32 +0000
commit02aaf95f674eb985e282e9cd5cbf0338ca618b3d (patch)
treeeaf494e689d16a632f3c510a5722d4c6cfb3e711 /sys/dev
parentcdc7cdbcde7b7046b2530682a5739b3ba6753a39 (diff)
BUG FIX: pccbb turns off PC Cards' power on the bus in shutdown hook.
Some machines cannot reboot without this fix.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/pccbb.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/pci/pccbb.c b/sys/dev/pci/pccbb.c
index 5a045216f70..0b27005127d 100644
--- a/sys/dev/pci/pccbb.c
+++ b/sys/dev/pci/pccbb.c
@@ -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 @@ pccbb_shutdown(void *arg)
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);