summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2010-09-14 00:03:05 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2010-09-14 00:03:05 +0000
commit83869b13d617de819b3677377ce544704d8a1364 (patch)
tree9979f86d707a4ee935e8c97085fdd86bf81d3127
parent69daa2237de0bcc6b4d1ec395ef5fedeca9df9ad (diff)
allow devices on fc and sas adapters to use all the openings the chip can
provide. spi parts are still limited. ok krw@
-rw-r--r--sys/dev/ic/mpi.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/dev/ic/mpi.c b/sys/dev/ic/mpi.c
index 5366cbc3205..4de8613fd17 100644
--- a/sys/dev/ic/mpi.c
+++ b/sys/dev/ic/mpi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mpi.c,v 1.161 2010/09/13 07:48:12 dlg Exp $ */
+/* $OpenBSD: mpi.c,v 1.162 2010/09/14 00:03:04 dlg Exp $ */
/*
* Copyright (c) 2005, 2006, 2009 David Gwynne <dlg@openbsd.org>
@@ -339,7 +339,10 @@ 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_buswidth;
+ if (sc->sc_porttype == MPI_PORTFACTS_PORTTYPE_SCSI)
+ sc->sc_link.openings = sc->sc_maxcmds / sc->sc_buswidth;
+ else
+ sc->sc_link.openings = sc->sc_maxcmds;
sc->sc_link.pool = &sc->sc_iopool;
bzero(&saa, sizeof(saa));