Enable power management for PCI devices.
authorpatrick <patrick@openbsd.org>
Tue, 25 Apr 2023 11:36:55 +0000 (11:36 +0000)
committerpatrick <patrick@openbsd.org>
Tue, 25 Apr 2023 11:36:55 +0000 (11:36 +0000)
ok kettenis@

sys/dev/fdt/dwpcie.c

index 18ca6f1..5f7dfdc 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: dwpcie.c,v 1.45 2023/04/24 15:15:00 patrick Exp $     */
+/*     $OpenBSD: dwpcie.c,v 1.46 2023/04/25 11:36:55 patrick Exp $     */
 /*
  * Copyright (c) 2018 Mark Kettenis <kettenis@openbsd.org>
  *
@@ -705,6 +705,8 @@ dwpcie_attach_deferred(struct device *self)
            sc->sc_msi_addr)
                pba.pba_flags |= PCI_FLAGS_MSI_ENABLED;
 
+       pci_dopm = 1;
+
        config_found(self, &pba, NULL);
 }