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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user