From: patrick Date: Tue, 25 Apr 2023 11:36:55 +0000 (+0000) Subject: Enable power management for PCI devices. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=f02e807fa25f680ebd31ec163004ca4deb8589d6;p=openbsd Enable power management for PCI devices. ok kettenis@ --- diff --git a/sys/dev/fdt/dwpcie.c b/sys/dev/fdt/dwpcie.c index 18ca6f1c578..5f7dfdcd3d6 100644 --- a/sys/dev/fdt/dwpcie.c +++ b/sys/dev/fdt/dwpcie.c @@ -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 * @@ -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); }