diff options
author | Jonathan Matthew <jmatthew@cvs.openbsd.org> | 2014-01-30 23:43:54 +0000 |
---|---|---|
committer | Jonathan Matthew <jmatthew@cvs.openbsd.org> | 2014-01-30 23:43:54 +0000 |
commit | 19aacf711ae7753a635066ea31a7cf40a2ae745a (patch) | |
tree | 65d48ae9a39e017b9e1cee7a57c46917c596191a /sys | |
parent | 7216f0e3fda85dee8fc4113c87eae2f22747858f (diff) |
don't do a register test mailbox command before resetting the chip.
kettenis@ found that this causes problems on sparc64 machines that boot off
isp2200s.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/ic/qla.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/sys/dev/ic/qla.c b/sys/dev/ic/qla.c index c8fcc0c435b..623ebe385e3 100644 --- a/sys/dev/ic/qla.c +++ b/sys/dev/ic/qla.c @@ -1,4 +1,4 @@ -/* $OpenBSD: qla.c,v 1.9 2014/01/30 19:39:23 kettenis Exp $ */ +/* $OpenBSD: qla.c,v 1.10 2014/01/30 23:43:53 jmatthew Exp $ */ /* * Copyright (c) 2011 David Gwynne <dlg@openbsd.org> @@ -274,20 +274,6 @@ qla_attach(struct qla_softc *sc) qla_host_cmd(sc, QLA_HOST_CMD_RELEASE); } - sc->sc_mbox[0] = QLA_MBOX_REGISTER_TEST; - sc->sc_mbox[1] = 0x1234; - sc->sc_mbox[2] = 0x4321; - sc->sc_mbox[3] = 0xaaa5; - sc->sc_mbox[4] = 0xbbbb; - if (qla_mbox(sc, 0x001f, 0x001f)) { - printf("register test command failed\n"); - return (ENXIO); - } else if (sc->sc_mbox[1] != 0x1234 || sc->sc_mbox[2] != 0x4321 || - sc->sc_mbox[3] != 0xaaa5 || sc->sc_mbox[4] != 0xbbbb) { - printf("register test command failed\n"); - return (ENXIO); - } - qla_host_cmd(sc, QLA_HOST_CMD_PAUSE); qla_set_ints(sc, 0); |