diff options
-rw-r--r-- | sys/dev/ic/mpi.c | 7 |
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)); |