From 5323f19923d178a32640441002e11d28b3d960df Mon Sep 17 00:00:00 2001 From: David Gwynne Date: Sun, 9 May 2010 22:03:57 +0000 Subject: 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@ --- sys/dev/ic/mpi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev/ic') 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 @@ -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)); -- cgit v1.2.3