summaryrefslogtreecommitdiffstats
path: root/sys/dev/isp
diff options
context:
space:
mode:
authormjacob <mjacob@FreeBSD.org>2006-11-17 17:32:45 +0000
committermjacob <mjacob@FreeBSD.org>2006-11-17 17:32:45 +0000
commit18a68319cf38b55947628483e75887826c290099 (patch)
treeb124caa017a6c54d02c45fa1668abc4080a247d6 /sys/dev/isp
parentbac3f08deac27a8d7bf555a358223ec1fdc0804b (diff)
downloadFreeBSD-src-18a68319cf38b55947628483e75887826c290099.zip
FreeBSD-src-18a68319cf38b55947628483e75887826c290099.tar.gz
Disable code to set max read byte count on the 2400.
It caused a panic in writing the config register on a system. Turn it off until we take the time to understand it. Reported by and Testing by: Anton
Diffstat (limited to 'sys/dev/isp')
-rw-r--r--sys/dev/isp/isp_pci.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/dev/isp/isp_pci.c b/sys/dev/isp/isp_pci.c
index 2f9c9a5..ee62276 100644
--- a/sys/dev/isp/isp_pci.c
+++ b/sys/dev/isp/isp_pci.c
@@ -1057,6 +1057,7 @@ isp_pci_attach(device_t dev)
cmd &= ~PCIM_CMD_INTX_DISABLE;
}
+#ifdef WE_KNEW_WHAT_WE_WERE_DOING
if (IS_24XX(isp)) {
int reg;
@@ -1088,6 +1089,11 @@ isp_pci_attach(device_t dev)
pci_write_config(dev, reg, 2, pectl);
}
}
+#else
+ if (IS_24XX(isp)) {
+ cmd &= ~PCIM_CMD_INTX_DISABLE;
+ }
+#endif
pci_write_config(dev, PCIR_COMMAND, cmd, 2);
OpenPOWER on IntegriCloud