NetBSD-Bugs archive

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

Re: kern/38691



The following reply was made to PR kern/38691; it has been noted by GNATS.

From: "S.P.Zeidler" <spz%NetBSD.org@localhost>
To: gnats%gnats.netbsd.org@localhost
Cc: 
Subject: Re: kern/38691
Date: Sun, 17 Aug 2008 12:20:00 +0000

 With the following workaround, if_wi and auich work (without, they don't):
 
 Index: sys/dev/pci/pccbb.c
 ===================================================================
 RCS file: /cvsroot/src/sys/dev/pci/pccbb.c,v
 retrieving revision 1.179
 diff -u -r1.179 pccbb.c
 --- sys/dev/pci/pccbb.c        6 Aug 2008 15:50:46 -0000       1.179
 +++ sys/dev/pci/pccbb.c        17 Aug 2008 12:10:29 -0000
 @@ -552,7 +552,7 @@
  
        /* CSC Interrupt: turn off card detect and power cycle interrupts */
        sockmask = bus_space_read_4(bmt, bmh, CB_SOCKET_MASK);
 -      sockmask &= ~(CB_SOCKET_MASK_CSTS | CB_SOCKET_MASK_CD |
 +      sockmask &= ~( CB_SOCKET_MASK_CD |
                      CB_SOCKET_MASK_POWER);
        bus_space_write_4(bmt, bmh, CB_SOCKET_MASK, sockmask);
        /* reset interrupt */
 @@ -962,7 +962,7 @@
  
        /* CSC Interrupt: Card detect and power cycle interrupts on */
        sockmask = bus_space_read_4(bmt, bmh, CB_SOCKET_MASK);
 -      sockmask |= CB_SOCKET_MASK_CSTS | CB_SOCKET_MASK_CD |
 +      sockmask |= CB_SOCKET_MASK_CD |
            CB_SOCKET_MASK_POWER;
        bus_space_write_4(bmt, bmh, CB_SOCKET_MASK, sockmask);
        /* reset interrupt */
 @@ -3162,7 +3162,7 @@
  
        reg = bus_space_read_4(base_memt, base_memh, CB_SOCKET_MASK);
        /* Disable interrupts. */
 -      reg &= ~(CB_SOCKET_MASK_CSTS | CB_SOCKET_MASK_CD | 
CB_SOCKET_MASK_POWER);
 +      reg &= ~(CB_SOCKET_MASK_CD | CB_SOCKET_MASK_POWER);
        bus_space_write_4(base_memt, base_memh, CB_SOCKET_MASK, reg);
        /* XXX joerg Disable power to the socket? */
  
 @@ -3200,7 +3200,7 @@
        /* CSC Interrupt: Card detect interrupt on */
        reg = bus_space_read_4(base_memt, base_memh, CB_SOCKET_MASK);
        /* Card detect intr is turned on. */
 -      reg |= CB_SOCKET_MASK_CSTS | CB_SOCKET_MASK_CD | CB_SOCKET_MASK_POWER;
 +      reg |= CB_SOCKET_MASK_CD | CB_SOCKET_MASK_POWER;
        bus_space_write_4(base_memt, base_memh, CB_SOCKET_MASK, reg);
        /* reset interrupt */
        reg = bus_space_read_4(base_memt, base_memh, CB_SOCKET_EVENT);
 


Home | Main Index | Thread Index | Old Index