summaryrefslogtreecommitdiff
path: root/sys/dev/pci/pciide.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2010-07-23 02:50:05 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2010-07-23 02:50:05 +0000
commit2b7131490d9996be74c632902de60d2a1619844b (patch)
treeeccf09f0e0a755018de583d0f56bf82c85eae37b /sys/dev/pci/pciide.c
parent7e1470fc2d64ab7b02fa47e37ff319c27d47d4d8 (diff)
For suspend/reume, ATI IXP chips (might) need 0x40-0x56 saved.. but
these the 6 registers already saved
Diffstat (limited to 'sys/dev/pci/pciide.c')
-rw-r--r--sys/dev/pci/pciide.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/dev/pci/pciide.c b/sys/dev/pci/pciide.c
index 529fec17576..1a3ad01afcc 100644
--- a/sys/dev/pci/pciide.c
+++ b/sys/dev/pci/pciide.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pciide.c,v 1.309 2010/07/22 18:11:16 deraadt Exp $ */
+/* $OpenBSD: pciide.c,v 1.310 2010/07/23 02:50:04 deraadt Exp $ */
/* $NetBSD: pciide.c,v 1.127 2001/08/03 01:31:08 tsutsui Exp $ */
/*
@@ -1432,10 +1432,6 @@ pciide_activate(struct device *self, int act)
sc->sc_tag, ICH5_SATA_PI);
sc->sc_save2[2] = pciide_pci_read(sc->sc_pc,
sc->sc_tag, ICH_SATA_PCS);
- } else if (sc->sc_pp->chip_map == piix_chip_map) {
- /* nothing to save */
- } else if (sc->sc_pp->chip_map == phison_chip_map) {
- /* nothing to save */
}
break;
case DVACT_RESUME:
@@ -1460,6 +1456,8 @@ pciide_activate(struct device *self, int act)
/* nothing more to restore */
} else if (sc->sc_pp->chip_map == phison_chip_map) {
/* nothing more to restore */
+ } else if (sc->sc_pp->chip_map == ixp_chip_map) {
+ /* nothing to restore (0x40 - 0x56) */
} else {
printf("%s: restore for unknown chip map %x\n",
sc->sc_wdcdev.sc_dev.dv_xname,