qwz: enable suspend/resume

Marcus Glocker <[email protected]>
Newsgroups gmane.os.openbsd.tech
Message-ID <ldxzmtgejh2ssnwznix6mud67ao2o7dzhnmqniw3dqgrqf4pd7@odw6drvdx2np>
This makes suspend/resume with qwz(4) work on my Samsung Galaxy Book4
Edge.

Ok?


Index: sys/dev/ic/qwz.c
===================================================================
RCS file: /cvs/src/sys/dev/ic/qwz.c,v
diff -u -p -u -p -r1.38 qwz.c
--- sys/dev/ic/qwz.c	26 May 2026 14:55:16 -0000	1.38
+++ sys/dev/ic/qwz.c	7 Jun 2026 06:01:46 -0000
@@ -24857,8 +24857,14 @@ qwz_activate(struct device *self, int ac
 			qwz_stop(ifp);
 			rw_exit(&sc->ioctl_rwl);
 		}
+		if (sc->fw_initialized)
+			qwz_core_deinit(sc);
 		break;
 	case DVACT_RESUME:
+		err = qwz_hal_srng_init(sc);
+		if (err)
+			printf("%s: could not initialize hal\n",
+			    sc->sc_dev.dv_xname);
 		break;
 	case DVACT_WAKEUP:
 		if ((ifp->if_flags & (IFF_UP | IFF_RUNNING)) == IFF_UP) {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.