From: stsp Date: Thu, 15 Feb 2024 16:29:45 +0000 (+0000) Subject: fix wrong tsleep waiting address in qwx_qmi_mem_seg_send() X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=7ba81a6064c9749c502295dac7638bfbc81698c1;p=openbsd fix wrong tsleep waiting address in qwx_qmi_mem_seg_send() Fixes spurious "qwx0: failed to send qmi memory segments: -1" error with associated lag during 'ifconfig qwx0 down up' --- diff --git a/sys/dev/ic/qwx.c b/sys/dev/ic/qwx.c index 9f9d81afd1f..80a8e4786b1 100644 --- a/sys/dev/ic/qwx.c +++ b/sys/dev/ic/qwx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: qwx.c,v 1.39 2024/02/15 15:53:51 stsp Exp $ */ +/* $OpenBSD: qwx.c,v 1.40 2024/02/15 16:29:45 stsp Exp $ */ /* * Copyright 2023 Stefan Sperling @@ -7742,7 +7742,7 @@ qwx_qmi_mem_seg_send(struct qwx_softc *sc) sc->fwmem_ready = 0; while (sc->sc_req_mem_ind == NULL) { - ret = tsleep_nsec(&sc->qmi_resp, 0, "qwxfwmem", + ret = tsleep_nsec(&sc->sc_req_mem_ind, 0, "qwxfwmem", SEC_TO_NSEC(10)); if (ret) { printf("%s: fw memory request timeout\n",