patch-1.3.91 linux/arch/alpha/kernel/alcor.c

Next file: linux/arch/alpha/kernel/apecs.c
Previous file: linux/Makefile
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.90/linux/arch/alpha/kernel/alcor.c linux/arch/alpha/kernel/alcor.c
@@ -410,6 +410,20 @@
 		hwrpb->max_asn = MAX_ASN;
 	}
 
+        /*
+         * Finally, clear the CIA_CFG register, which gets used
+         *  for PCI Config Space accesses. That is the way
+         *  we want to use it, and we do not want to depend on
+         *  what ARC or SRM might have left behind...
+         */
+        {
+#if 0
+          unsigned int cia_cfg = *((unsigned int *)ALCOR_IOC_CFG); mb();
+          if (cia_cfg) printk("alcor_init: CFG was 0x%x\n", cia_cfg);
+#endif
+          *((unsigned int *)ALCOR_IOC_CFG) = 0; mb();
+        }
+ 
 	return mem_start;
 }
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this