summaryrefslogtreecommitdiff
path: root/sys/dev/ic
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2010-05-09 22:03:57 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2010-05-09 22:03:57 +0000
commit5323f19923d178a32640441002e11d28b3d960df (patch)
tree5cbbb82381d0a64f0123b256725f1344c5163050 /sys/dev/ic
parenta4b832278ee18e28ba54f5b61489aa022f7b23de (diff)
back out 1.143, it causes data corruption on the mpis in sun v20z boxes,
but i suspect it is common to all SPI mpi parts. problem found and problem diff verified by landry. ok krw@ landry@ jasper@
Diffstat (limited to 'sys/dev/ic')
-rw-r--r--sys/dev/ic/mpi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/mpi.c b/sys/dev/ic/mpi.c
index 4b1cfc739fb..c097a5a443b 100644
--- a/sys/dev/ic/mpi.c
+++ b/sys/dev/ic/mpi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mpi.c,v 1.146 2010/04/28 11:46:23 marco Exp $ */
+/* $OpenBSD: mpi.c,v 1.147 2010/05/09 22:03:56 dlg Exp $ */
/*
* Copyright (c) 2005, 2006, 2009 David Gwynne <dlg@openbsd.org>
@@ -293,7 +293,7 @@ mpi_attach(struct mpi_softc *sc)
sc->sc_link.adapter_softc = sc;
sc->sc_link.adapter_target = sc->sc_target;
sc->sc_link.adapter_buswidth = sc->sc_buswidth;
- sc->sc_link.openings = sc->sc_maxcmds;
+ sc->sc_link.openings = sc->sc_maxcmds / sc->sc_buswidth;
sc->sc_link.pool = &sc->sc_iopool;
bzero(&saa, sizeof(saa));