summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/mpi_pci.c
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2008-05-25 23:45:53 +0000
committerdlg <dlg@openbsd.org>2008-05-25 23:45:53 +0000
commit458c01577474f08be3a220e8dfce3f36fcaeec54 (patch)
tree905254c5d97fc2588ec96d269daa47050856255f /sys/dev/pci/mpi_pci.c
parentDon't error out if dhcpd-sync does not exist in /etc/services and no (diff)
downloadwireguard-openbsd-458c01577474f08be3a220e8dfce3f36fcaeec54.tar.xz
wireguard-openbsd-458c01577474f08be3a220e8dfce3f36fcaeec54.zip
tweak the SPI port configuration if we figure out that it is not quite
right, in particular the adapters scsi id on the bus. requested by kettenis@ who is having trouble with the scsi controller on the primepower 250.
Diffstat (limited to 'sys/dev/pci/mpi_pci.c')
-rw-r--r--sys/dev/pci/mpi_pci.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/pci/mpi_pci.c b/sys/dev/pci/mpi_pci.c
index d616aa5bd16..1fb70993670 100644
--- a/sys/dev/pci/mpi_pci.c
+++ b/sys/dev/pci/mpi_pci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mpi_pci.c,v 1.17 2008/01/26 08:13:09 dlg Exp $ */
+/* $OpenBSD: mpi_pci.c,v 1.18 2008/05/25 23:45:53 dlg Exp $ */
/*
* Copyright (c) 2005 David Gwynne <dlg@openbsd.org>
@@ -104,6 +104,7 @@ mpi_pci_attach(struct device *parent, struct device *self, void *aux)
psc->psc_ih = NULL;
sc->sc_dmat = pa->pa_dmat;
sc->sc_ios = 0;
+ sc->sc_target = -1;
/* find the appropriate memory base */
for (r = PCI_MAPREG_START; r < PCI_MAPREG_END; r += sizeof(memtype)) {