1
0
mirror of https://github.com/openbsd/src.git synced 2026-06-18 07:13:36 +02:00

sadly attach functions cannot indicate failure (until we eventually

fix that), so the device node remains inact (but broken).  Strange
callbacks (like activate for suspend/resume) need to detect this situation
in a device-dependent way for now.  Do that here.
ok kettenis
This commit is contained in:
deraadt
2026-06-07 16:29:28 +00:00
parent 9977112824
commit 1175e773e1
+4 -1
View File
@@ -1,4 +1,4 @@
/* $OpenBSD: ihidev.c,v 1.44 2026/06/01 18:04:05 mglocker Exp $ */
/* $OpenBSD: ihidev.c,v 1.45 2026/06/07 16:29:28 deraadt Exp $ */
/*
* HID-over-i2c driver
*
@@ -273,6 +273,9 @@ ihidev_activate(struct device *self, int act)
DPRINTF(("%s(%d)\n", __func__, act));
if (sc->sc_nrepid <= 0)
return (0);
switch (act) {
case DVACT_QUIESCE:
rv = config_activate_children(self, act);