diff options
author | 2014-03-06 17:57:34 +0000 | |
---|---|---|
committer | 2014-03-06 17:57:34 +0000 | |
commit | d6f4d5a2ece4f8bc6b33f7c5f91d9d834e0ae785 (patch) | |
tree | 046721ccce8b22f940597b6e190d7f078b2b3c06 | |
parent | Fix inconsistency in the naming of the chipsets. (diff) | |
download | wireguard-openbsd-d6f4d5a2ece4f8bc6b33f7c5f91d9d834e0ae785.tar.xz wireguard-openbsd-d6f4d5a2ece4f8bc6b33f7c5f91d9d834e0ae785.zip |
Set the correct clock rate for ISP1020/1020A.
-rw-r--r-- | sys/dev/pci/qlw_pci.c | 7 |
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: |