summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2020-07-14 00:43:30 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2020-07-14 00:43:30 +0000
commitcd727b1d8e1723a64827f3492ec3cfb6332fc1e3 (patch)
treea531485794b80be5c7b4d87de1abf7ffe77ac814
parent62b738df152f6473685d7796007ffd20c39e7e1b (diff)
Set SDEV_NOWIDE and SDEV_NOSYNC on the 'real' link (xs->sc_link) when
negotiations fail.
-rw-r--r--sys/dev/ic/qlw.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ic/qlw.c b/sys/dev/ic/qlw.c
index afa8b4a11b6..e35ff684a4c 100644
--- a/sys/dev/ic/qlw.c
+++ b/sys/dev/ic/qlw.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: qlw.c,v 1.40 2020/07/11 13:34:06 krw Exp $ */
+/* $OpenBSD: qlw.c,v 1.41 2020/07/14 00:43:29 krw Exp $ */
/*
* Copyright (c) 2011 David Gwynne <dlg@openbsd.org>
@@ -658,7 +658,7 @@ qlw_handle_resp(struct qlw_softc *sc, u_int16_t id)
case QLW_IOCB_STATUS_WIDE_FAILED:
DPRINTF(QLW_D_INTR, "%s: wide failed\n", DEVNAME(sc));
- sc->sc_link->quirks |= SDEV_NOWIDE;
+ xs->sc_link->quirks |= SDEV_NOWIDE;
atomic_setbits_int(&sc->sc_update_required[bus],
1 << xs->sc_link->target);
task_add(systq, &sc->sc_update_task);
@@ -668,7 +668,7 @@ qlw_handle_resp(struct qlw_softc *sc, u_int16_t id)
case QLW_IOCB_STATUS_SYNCXFER_FAILED:
DPRINTF(QLW_D_INTR, "%s: sync failed\n", DEVNAME(sc));
- sc->sc_link->quirks |= SDEV_NOSYNC;
+ xs->sc_link->quirks |= SDEV_NOSYNC;
atomic_setbits_int(&sc->sc_update_required[bus],
1 << xs->sc_link->target);
task_add(systq, &sc->sc_update_task);