soc/amd/common/data_fabric/domain: continue after unassigned resource
When iterating over the resource list in amd_pci_domain_fill_ssdt, don't return when a resource is unassigned, but just continue to the next loop iteration so the resulting SSDT will be complete and not broken due to a missing resource template footer and the scope not being closed. Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Change-Id: I39fe516f27a6d971fb9c57a1e64ead79d23aff08 Reviewed-on: https://review.coreboot.org/c/coreboot/+/76817 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Matt DeVillier <matt.devillier@amd.corp-partner.google.com>
This commit is contained in:
parent
d686ee24a7
commit
a239cf488a
|
@ -224,7 +224,7 @@ void amd_pci_domain_fill_ssdt(const struct device *domain)
|
|||
struct resource *res;
|
||||
for (res = domain->resource_list; res != NULL; res = res->next) {
|
||||
if (!(res->flags & IORESOURCE_ASSIGNED))
|
||||
return;
|
||||
continue;
|
||||
switch (res->flags & IORESOURCE_TYPE_MASK) {
|
||||
case IORESOURCE_IO:
|
||||
write_ssdt_domain_io_producer_range(acpi_device_name(domain),
|
||||
|
|
Loading…
Reference in New Issue