Source-Changes-HG archive

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

[src/netbsd-2]: src/sys/dev/pci Pull up revision 1.18 (requested by bouyer in...



details:   https://anonhg.NetBSD.org/src/rev/725fc26410ce
branches:  netbsd-2
changeset: 563952:725fc26410ce
user:      riz <riz%NetBSD.org@localhost>
date:      Sun Aug 07 15:53:32 2005 +0000

description:
Pull up revision 1.18 (requested by bouyer in ticket #5555):
To disable a channel we need to clear bit 2 or 3, not all other bits but
bit 2 or 3. Thanks to Takeshi Nakayama for catching it.
(With this mistake the code was still working for the first channel, because
the reset of the second channel would disable/enable the first one).

diffstat:

 sys/dev/pci/aceride.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 55cf0b5fd39c -r 725fc26410ce sys/dev/pci/aceride.c
--- a/sys/dev/pci/aceride.c     Sun Aug 07 15:51:36 2005 +0000
+++ b/sys/dev/pci/aceride.c     Sun Aug 07 15:53:32 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: aceride.c,v 1.6.4.1 2005/08/07 15:51:33 riz Exp $      */
+/*     $NetBSD: aceride.c,v 1.6.4.2 2005/08/07 15:53:32 riz Exp $      */
 
 /*
  * Copyright (c) 1999, 2000, 2001 Manuel Bouyer.
@@ -217,7 +217,7 @@
        reg = pciide_pci_read(acer_sc->pcib_pa.pa_pc, acer_sc->pcib_pa.pa_tag,
            ACER_PCIB_CTRL);
        pciide_pci_write(acer_sc->pcib_pa.pa_pc, acer_sc->pcib_pa.pa_tag,
-           ACER_PCIB_CTRL, reg & ACER_PCIB_CTRL_ENCHAN(chp->ch_channel));
+           ACER_PCIB_CTRL, reg & ~ACER_PCIB_CTRL_ENCHAN(chp->ch_channel));
        delay(1000);
        pciide_pci_write(acer_sc->pcib_pa.pa_pc, acer_sc->pcib_pa.pa_tag,
            ACER_PCIB_CTRL, reg);



Home | Main Index | Thread Index | Old Index