Skip to contentSkip to conversation

Ignore zero-length _CRS descriptors

PATCH New Bjorn Helgaas 1 participant 1 message Jan 5, 2004

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Ignore zero-length _CRS descriptors

ia64: Skip zero-length resources in PCI root bridge _CRS

(add_window): Skip zero-length resources. It seems to be common
practice to leave extra descriptors in the _CRS and set the _LEN field of unused ones to zero.

=== arch/ia64/pci/pci.c 1.39 vs edited ==--- 1.39/arch/ia64/pci/pci.c Tue Nov 25 06:23:17 2003
+++ edited/arch/ia64/pci/pci.c Mon Jan 5 10:33:32 2004
@@ -223,6 +223,9 @@

status = acpi_resource_to_address64(res, &addr); if (ACPI_SUCCESS(status)) {
+ if (!addr.address_length)
+ return AE_OK;
+
if (addr.resource_type = ACPI_MEMORY_RANGE) {
flags = IORESOURCE_MEM; root = &iomem_resource;