diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2009-10-23 13:30:55 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2009-10-23 13:30:55 +0000 |
commit | 962ce06a55ff57eb21aa97cfc9141dc16c7df3ec (patch) | |
tree | 642b6ae3349ab1b2bf1c83ec3f4393375cd2edca /sys | |
parent | e078f145d64de13780dbc13faf0d264ce911d69e (diff) |
enable event handling on sas hbas and ignore unhandled events. this turns
on sas hotplug. you can add and remove drives and the kernel will handle it
now.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/ic/mpi.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sys/dev/ic/mpi.c b/sys/dev/ic/mpi.c index d77080d8c69..d8081fcf5f9 100644 --- a/sys/dev/ic/mpi.c +++ b/sys/dev/ic/mpi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mpi.c,v 1.115 2009/10/23 01:02:29 dlg Exp $ */ +/* $OpenBSD: mpi.c,v 1.116 2009/10/23 13:30:54 dlg Exp $ */ /* * Copyright (c) 2005, 2006 David Gwynne <dlg@openbsd.org> @@ -252,12 +252,12 @@ mpi_attach(struct mpi_softc *sc) goto free_replies; } -#ifdef notyet - if (mpi_eventnotify(sc) != 0) { - printf("%s: unable to get portfacts\n", DEVNAME(sc)); - goto free_replies; + if (sc->sc_porttype == MPI_PORTFACTS_PORTTYPE_SAS) { + if (mpi_eventnotify(sc) != 0) { + printf("%s: unable to enable events\n", DEVNAME(sc)); + goto free_replies; + } } -#endif if (mpi_portenable(sc) != 0) { printf("%s: unable to enable port\n", DEVNAME(sc)); @@ -2157,8 +2157,8 @@ mpi_eventnotify_done(struct mpi_ccb *ccb) break; default: - printf("%s: unhandled event 0x%02x\n", DEVNAME(sc), - letoh32(enp->event)); + DNPRINTF(MPI_D_EVT, "%s: unhandled event 0x%02x\n", + DEVNAME(sc), letoh32(enp->event)); break; } |