summaryrefslogtreecommitdiff
path: root/sys/dev/pci/qlw_pci.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2014-03-06 17:57:35 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2014-03-06 17:57:35 +0000
commit9a305a0c63c51ff70b4d1fb5260df8998eb1c19e (patch)
tree7e1c394f09db04cbe30776524f1a80f5b93f9bbf /sys/dev/pci/qlw_pci.c
parent72cb8998d85eb3a404dace77b120472a8299c1de (diff)
Set the correct clock rate for ISP1020/1020A.
Diffstat (limited to 'sys/dev/pci/qlw_pci.c')
-rw-r--r--sys/dev/pci/qlw_pci.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/dev/pci/qlw_pci.c b/sys/dev/pci/qlw_pci.c
index 2525a823107..865dcd287bf 100644
--- a/sys/dev/pci/qlw_pci.c
+++ b/sys/dev/pci/qlw_pci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: qlw_pci.c,v 1.2 2014/03/05 23:27:37 kettenis Exp $ */
+/* $OpenBSD: qlw_pci.c,v 1.3 2014/03/06 17:57:34 kettenis Exp $ */
/*
* Copyright (c) 2011 David Gwynne <dlg@openbsd.org>
@@ -156,7 +156,10 @@ qlw_pci_attach(struct device *parent, struct device *self, void *aux)
sc->sc_isp_gen = QLW_GEN_ISP1040;
sc->sc_isp_type = QLW_ISP1040;
sc->sc_numbusses = 1;
- sc->sc_clock = 60;
+ if (PCI_REVISION(pa->pa_class) < 2)
+ sc->sc_clock = 40; /* ISP1020/1020A */
+ else
+ sc->sc_clock = 60; /* ISP1040/1040A/1040B/1040C */
break;
case PCI_PRODUCT_QLOGIC_ISP1240: