summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorChris Cappuccio <chris@cvs.openbsd.org>2014-02-08 16:02:43 +0000
committerChris Cappuccio <chris@cvs.openbsd.org>2014-02-08 16:02:43 +0000
commit809191b26fc895a7d848aaf1305c8621bd73284d (patch)
treebe0650f5d3655b60292005a4a895075d7837feab /sys
parent0e79e82d28507696c97d5f27c41b7d869188a615 (diff)
Be conservative about the resources the controller advertises for
"type D" Marvel 9580. From Ching Huang, Areca. ok dlg@
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/arc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/arc.c b/sys/dev/pci/arc.c
index 3390e5be901..2d9d041d66f 100644
--- a/sys/dev/pci/arc.c
+++ b/sys/dev/pci/arc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: arc.c,v 1.100 2014/02/08 15:58:01 chris Exp $ */
+/* $OpenBSD: arc.c,v 1.101 2014/02/08 16:02:42 chris Exp $ */
/*
* Copyright (c) 2006 David Gwynne <dlg@openbsd.org>
@@ -1730,7 +1730,7 @@ arc_chipD_firmware(struct arc_softc *sc)
return (1);
}
- sc->sc_req_count = letoh32(fwinfo.queue_len);
+ sc->sc_req_count = letoh32(fwinfo.queue_len) - 1;
if (arc_msg0(sc, ARC_RD_INB_MSG0_START_BGRB) != 0) {
printf("%s: timeout waiting to start bg rebuild\n",