com at acpi like com at isa needs com_active() for suspend/resume support.
authorclaudio <claudio@openbsd.org>
Tue, 15 Feb 2022 12:24:55 +0000 (12:24 +0000)
committerclaudio <claudio@openbsd.org>
Tue, 15 Feb 2022 12:24:55 +0000 (12:24 +0000)
Fixes my com0 issues after zzz and ZZZ.
OK kettenis@ miod@

sys/dev/acpi/com_acpi.c

index 9643fcb..b1e3f30 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: com_acpi.c,v 1.6 2021/12/26 13:55:36 kettenis Exp $   */
+/*     $OpenBSD: com_acpi.c,v 1.7 2022/02/15 12:24:55 claudio Exp $    */
 /*
  * Copyright (c) 2018 Mark Kettenis
  *
@@ -44,7 +44,8 @@ int   com_acpi_match(struct device *, void *, void *);
 void   com_acpi_attach(struct device *, struct device *, void *);
 
 struct cfattach com_acpi_ca = {
-       sizeof(struct com_acpi_softc), com_acpi_match, com_acpi_attach
+       sizeof(struct com_acpi_softc), com_acpi_match, com_acpi_attach,
+       NULL, com_activate
 };
 
 const char *com_hids[] = {