From 70bf92576d17e17e110708da296896a4fea80890 Mon Sep 17 00:00:00 2001 From: PulkoMandy Date: Sun, 23 Oct 2022 19:57:36 +0200 Subject: [PATCH] pci: print PCI info in case of deferred init. This is normally done just after init, but in the case of deferred init, there will be nothing to print at that point. Currently, there is no way to access that info after the system has booted. listdev should be extended, or the info should be published in PCI device nodes to view in the Devices app. Change-Id: Id89377ccf8bb967abae96194e503fffc06477acf Reviewed-on: https://review.haiku-os.org/c/haiku/+/5758 Tested-by: Commit checker robot Reviewed-by: waddlesplash --- src/add-ons/kernel/bus_managers/pci/pci.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/add-ons/kernel/bus_managers/pci/pci.cpp b/src/add-ons/kernel/bus_managers/pci/pci.cpp index 0641cc7849..da467105cf 100644 --- a/src/add-ons/kernel/bus_managers/pci/pci.cpp +++ b/src/add-ons/kernel/bus_managers/pci/pci.cpp @@ -524,6 +524,8 @@ pci_init_deferred(void) return B_ERROR; } + pci_print_info(); + sInitDone = true; return B_OK; }