summaryrefslogtreecommitdiff
path: root/sys/dev/ic/qwx.c
diff options
context:
space:
mode:
authorStefan Sperling <stsp@cvs.openbsd.org>2024-08-17 08:12:47 +0000
committerStefan Sperling <stsp@cvs.openbsd.org>2024-08-17 08:12:47 +0000
commit00dcf69b780d02c6993b3c9acc7ebd59f697e1e1 (patch)
tree20ff766837dde07c536cff1057f9d6c74fe62aff /sys/dev/ic/qwx.c
parentfa180a9ff1e6af2dc67407e8a27069fe47b44a87 (diff)
enable qwx(4) ext irqs earlier for suspend/resume
Enable ext IRQs like the Linux driver does it, not later. I did this differently due to problems in early development that have since been fixed. Fixes an interrupt storm during resume which prevents things like key installation from working, leaving the network link dead.
Diffstat (limited to 'sys/dev/ic/qwx.c')
-rw-r--r--sys/dev/ic/qwx.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/sys/dev/ic/qwx.c b/sys/dev/ic/qwx.c
index ab17d9e457a..fe079d43c26 100644
--- a/sys/dev/ic/qwx.c
+++ b/sys/dev/ic/qwx.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: qwx.c,v 1.63 2024/06/11 10:06:35 stsp Exp $ */
+/* $OpenBSD: qwx.c,v 1.64 2024/08/17 08:12:46 stsp Exp $ */
/*
* Copyright 2023 Stefan Sperling <stsp@openbsd.org>
@@ -19836,10 +19836,7 @@ qwx_core_qmi_firmware_ready(struct qwx_softc *sc)
goto err_core_stop;
}
-#if 0 /* TODO: Is this in the right spot for OpenBSD? */
sc->ops.irq_enable(sc);
-#endif
-
#if 0
mutex_unlock(&ab->core_lock);
#endif
@@ -25390,9 +25387,6 @@ qwx_run(struct qwx_softc *sc)
return ret;
}
- /* Enable "ext" IRQs for datapath. */
- sc->ops.irq_enable(sc);
-
return 0;
}