From f84beabf2f4f98fcb8b7bc08691df9ce8a269b27 Mon Sep 17 00:00:00 2001 From: Chris Cappuccio Date: Tue, 23 Nov 1999 20:48:36 +0000 Subject: Bugfix from NetBSD. For SiS, PIIX, and Apollo IDE controllers, the secondary channel was ignored when the primary channel is disabled. --- sys/dev/pci/pciide.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sys') diff --git a/sys/dev/pci/pciide.c b/sys/dev/pci/pciide.c index 427d9b77499..ed93953541c 100644 --- a/sys/dev/pci/pciide.c +++ b/sys/dev/pci/pciide.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pciide.c,v 1.14 1999/11/17 01:22:56 csapuntz Exp $ */ +/* $OpenBSD: pciide.c,v 1.15 1999/11/23 20:48:35 chris Exp $ */ /* $NetBSD: pciide.c,v 1.40 1999/07/12 13:49:38 bouyer Exp $ */ /* @@ -1293,7 +1293,7 @@ piix_chip_map(sc, pa) PIIX_IDETIM_IDE) == 0) { printf("%s: %s ignored (disabled)\n", sc->sc_wdcdev.sc_dev.dv_xname, cp->name); - return; + continue; } /* PIIX are compat-only pciide devices */ pciide_mapchan(pa, cp, 0, &cmdsize, &ctlsize, pciide_pci_intr); @@ -1685,7 +1685,7 @@ apollo_chip_map(sc, pa) if ((ideconf & APO_IDECONF_EN(channel)) == 0) { printf("%s: %s ignored (disabled)\n", sc->sc_wdcdev.sc_dev.dv_xname, cp->name); - return; + continue; } pciide_mapchan(pa, cp, interface, &cmdsize, &ctlsize, pciide_pci_intr); @@ -2188,7 +2188,7 @@ sis_chip_map(sc, pa) (channel == 1 && (sis_ctr0 & SIS_CTRL0_CHAN1_EN) == 0)) { printf("%s: %s ignored (disabled)\n", sc->sc_wdcdev.sc_dev.dv_xname, cp->name); - return; + continue; } pciide_mapchan(pa, cp, interface, &cmdsize, &ctlsize, pciide_pci_intr); -- cgit v1.2.3