From e59ad2e0da6298a12b3d54f0a7f17c87a973910d Mon Sep 17 00:00:00 2001 From: Furquan Shaikh Date: Sat, 22 May 2021 07:36:58 -0700 Subject: [PATCH] sconfig: Emit probe_list in all stages `probe_list` member in `struct device` is present in all stages, however, util/sconfig emits the list only when !DEVTREE_EARLY. This change ensures that `probe_list` is emitted in all stages. In follow up changes, this is used to get the correct device state using probe conditions. Change-Id: I61f7e909d48b616ac2127a5a9f36bdf4817a5165 Signed-off-by: Furquan Shaikh Reviewed-on: https://review.coreboot.org/c/coreboot/+/54829 Tested-by: build bot (Jenkins) Reviewed-by: EricR Lai Reviewed-by: Tim Wawrzynczak Reviewed-by: Karthik Ramasubramanian --- util/sconfig/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/sconfig/main.c b/util/sconfig/main.c index e2a05862bf..258a1e40dc 100644 --- a/util/sconfig/main.c +++ b/util/sconfig/main.c @@ -1241,9 +1241,9 @@ static void pass1(FILE *fil, FILE *head, struct device *ptr, struct device *next fprintf(fil, "\t.sibling = &%s,\n", ptr->sibling->name); else fprintf(fil, "\t.sibling = NULL,\n"); - fprintf(fil, "#if !DEVTREE_EARLY\n"); if (ptr->probe) fprintf(fil, "\t.probe_list = %s_probe_list,\n", ptr->name); + fprintf(fil, "#if !DEVTREE_EARLY\n"); for (pin = 0; pin < 4; pin++) { if (ptr->pci_irq_info[pin].ioapic_irq_pin > 0) fprintf(fil,